Saravanan666/pypi-org huggingface dataset:
Package: easy-inference
Easy InferenceWelcome to the easy inference repository! The main goal of this repository is to provide a clean, simple and short way of setting up inference pipelines for 2D (and 3D) visual detection.
The interfaces to camera drivers are abstracted away as pythongenerators. A simple inference pipeline for a webcam based inference pipeline looks as follows:fromeasy_inference.providers.webcamimportWebcamprovider=Webcam(source=0)forframeinprovider:# run my detectionSee the examples directory for someyolov7pipelines.SidenoteMany examples is this repository includeyolov7pipelines using the onnx-runtime. To generate onnx model files follow the steps on the yolov7 repositoryreadme.To export a model for yolov7 including pose detection, checkout the following branch ofyolov7and download the pytorch modelyolov7-w6-pose.pt. Then run the following to export an onnx model with your desired configuration:cdyolov7
pythonmodels/export.py--weightsyolov7-w6-pose.pt--grid--simplify--export-nms--batch-size2--img-size512640
Package: easy-infra
easy-infraConfig-driven infrastructure. Demo project with the required config ishere.resourcesnetworking (tied tonetwork:config)vpctfsecurity groups (created by default, tied tosecurity-groups:config)tfsubnets (public and private, created by default, tied tosubnets:config)tfoptional load balancer (tied tobalancer:config)tfdatabase (tied todatabase:config)tfoptional database proxy (tied todatabase-proxy:config)tfmemcached cluster (default cache that is always present)tfoptional redis cluster (tied tocache:config)tfprojectssqs queue worker taskscheduler taskoptional fargate scheduler task (nice to have)cli tasks3 bucket (default bucket is created if none configured, tied tostorage:config)tfsqs queues (default queue is created if none configured, tied toqueues:config)tfauto scaling groups and config for the main service and workerstfother vapor featuresfirewall (backed byWAF)vaporrate limitbot controlmail (backed bySES)vaporoctanevaporsample configsThe selected file should be moved toeasy.ymlin your project root:minimal configfull config
Package: easyirc
Easy IRC is an IRC toolkit to develop IRC client or bot, especially for Python/IRC beginner.What are the Goals:Every core parts are replacable or expendable. They are layered considerately.Every behaviors are event-driven or pluggable.Every events are described independantly as much as possible.Super easy-to-write new modules.Batteries included - common bot features are included.General-purpose, still.Every parts are reusable. Command, event, module, entire bot or even non-easyirc based bot.What is not a goal:High-performance.ExampleAt this time, there is no document yet.You can follow example bot step by step:BasicBotas a starting point.Messagesfor general irc message hook.Regexfor regex-based message hook.
Package: easyjaeger
easyjaegerAsync helper for aiozipkinhttps://pypi.org/project/easyjaeger/Requirementspython 3.6, 3.7, 3.8aiozipkin==0.6.0installpip install easyjaegerUsageimportasyncioimportrandomfromeasyjaegerimportCLIENTfromeasyjaegerimportSERVERfromeasyjaegerimportTracingConfigfromeasyjaegerimportappend_tracefromeasyjaegerimportinit_traceJAEGER_CONFIG:TracingConfig=TracingConfig(host='http://127.0.0.1:9411/api/v2/spans',service_name='test_service',service_host='127.0.0.1',service_port=8000)asyncdefslow_sql(parent_id:str):asyncwithappend_trace(JAEGER_CONFIG,'SQL PROCESSING','SQL PROC','SQL PROC END',SERVER,{'dev':'ms'},parent_id):awaitasyncio.sleep(random.randint(1,6))asyncdefmain():parent_context_id:str# Main tracerasyncwithinit_trace(config=JAEGER_CONFIG,span_name='Slow HTTP',span_start='HTTP POST',span_end='HTTP END',span_kind=CLIENT,span_tags={'dev':'ms'},trace_id='1bdfb69797e564c4a8810630816f4e4d')asp_id:# parent_context_id should be pass into append_trace'sparent_context_id=p_id# Request to external (Redis)asyncwithappend_trace(config=JAEGER_CONFIG,span_name='Slow REDIS',span_start='REDIS HGETALL',span_end='HGETALL END',span_kind=CLIENT,span_tags={'dev':'ms'},parent_id='kek'):awaitasyncio.sleep(0.5)# Request to external (SQL)asyncwithappend_trace(JAEGER_CONFIG,'Slow SQL','SELECT * FROM','SQL END',CLIENT,{'dev':'ms'},parent_context_id)asp_id:awaitasyncio.gather(slow_sql(p_id),slow_sql(p_id),slow_sql(p_id),)if__name__=="__main__":asyncio.run(main())aiohttp middleware examples:GatewayimportaiohttpfromaiohttpimportwebfromeasyjaegerimportTracingConfigfromeasyjaeger.helpers.aiohttp_helpersimportMiddlewareConfigfromeasyjaeger.helpers.aiohttp_helpersimportparent_middlewareEASY_JAEGER_CONFIG:TracingConfig=TracingConfig(host='http://127.0.0.1:9411/api/v2/spans',service_name='init_service',service_host='127.0.0.1',service_port=8001,)EASY_JAEGER_MIDLLEWARE_CONFIG:MiddlewareConfig=MiddlewareConfig(EASY_JAEGER_CONFIG,trace_id_header_name='X-Request-ID')asyncdefinit(request):asyncwithaiohttp.ClientSession()assession:asyncwithsession.get('http://localhost:8002',headers={'Easy-Trace-ID':request['easy_trace_id']})asresp:response=awaitresp.text()returnweb.Response(text=response)app=web.Application(middlewares=[parent_middleware(EASY_JAEGER_MIDLLEWARE_CONFIG)])app.add_routes([web.get('/',init)])if__name__=='__main__':web.run_app(app,port=8001)child servicefromaiohttpimportwebfromeasyjaegerimportTracingConfigfromeasyjaeger.helpers.aiohttp_helpersimportMiddlewareConfigfromeasyjaeger.helpers.aiohttp_helpersimportchild_middlewareEASY_JAEGER_CONFIG:TracingConfig=TracingConfig(host='http://127.0.0.1:9411/api/v2/spans',service_name='child_service',service_host='127.0.0.1',service_port=8002,)EASY_JAEGER_MIDLLEWARE_CONFIG:MiddlewareConfig=MiddlewareConfig(EASY_JAEGER_CONFIG,span_name='web service',span_start='child service start',span_end='child service end')asyncdefchild(request):returnweb.Response(text="Hello, world!")app=web.Application(middlewares=[child_middleware(EASY_JAEGER_MIDLLEWARE_CONFIG)])app.add_routes([web.get('/',child)])if__name__=='__main__':web.run_app(app,port=8002)TODO:add sync versionadd testsadd docsadd more examples
Package: easyjapanese
Let’s study Easy Japanese (やさしいにほんご) with NHK news web easy!This module (package) helps you study intermediate level Japanese!This module mainly covers the topics listed below.To get the URLs of the most recent easy Japanese news articlesTo extract the body texts of themTo get the URL of the original articles of themTo extract the original ones as wellTo concatenate all the above dataTo save them all as a csv fileSpecifically, you can use this module to retrieve daily Easy Japanese(やさしいにほんご) news articles.Here’s how it works.Prepare the dataframe that has the columns named {‘Date’, ‘Easy URL’, ‘Easy article’, ‘Regular URL’, ‘Regular article’}. This module concatenate the newly retrieved data with this dataframe.Run the code below.:>>> from easyjapanese2 import EasyJapanese

>>> EasyJapanese()Input the DRIVER_PATH, which is the filepath where your Chrome Driver is, and SAVE_PATH, which is the filepath where there is a csv file you prepared in the 1st process.Have a great Easy Japanese (やさしいにほんご) life!I do not own any rights for the articles, nor take any responsibility caused by the use of this module.
Package: easy-json2json
Easy JSON2JSONDescriptionA python package for deep JSON translation.You just need to specify you template to get all data from another JSON to avoid doing that manually in your code.Installpip install easy-json2jsonUsage exampleCase #1 Simple JSONfromeasyjson2jsonimportJson2Jsonsource={"name":"Test Name"}# source JSONtemplate={"first_name":"name"}# this is the structure you want your new JSON betranslator=Json2Json(template=template,source=source)result=translator.get_result()print(result)# {'first_name': 'Test Name'}Case #2 Different structurefromeasyjson2jsonimportJson2Jsonsource={"name":"Test Name","address":{"name":"My Street","number":23}}# when is not a plain JSONtemplate={"first_name":"name","address_name":["address","name"]}# you don't want all that structuretranslator=Json2Json(template=template,source=source)result=translator.get_result()print(result)# {'first_name': 'Test Name', 'address_name': 'My Street'}Case #3 From ugly JSONfromeasyjson2jsonimportJson2Jsonsource={"name":"My Name","ADDRESS":{"name":"My Street","number":23}}# ugly JSON happenstemplate={"name":"name","address":{"_source":"ADDRESS","name":"name","number":"number"}}# you want beautiful JSONtranslator=Json2Json(template=template,source=source)result=translator.get_result()print(result)# {'name': 'My Name', 'address': {'name': 'My Street', 'number': 23}}Case #4 From List in JSONfromeasyjson2jsonimportJson2Jsonsource={"name":"My Name","ADDRESSES":[{"name":"My Street","number":23}]}# when you have a listtemplate={"name":"name","addresses":{"_source_":"ADDRESSES","name":"name","number":"number"}}# then you get that list beautifulytranslator=Json2Json(template=template,source=source)result=translator.get_result()print(result)# {'name': 'My Name', 'addresses': [{'name': 'My Street', 'number': 23}]}Source Codeeasyjson2jsonAuthor2020 brworkit.LicenseMIT License.
Package: easy-kafka
Easy to use python kafka(for kb first)As a message queue, Kafka has the following characteristics:Stable, No data loss.Save sent messages.Allow larger data.Allow slower speed.Quick StartInstallation: pip install easy_kafka1.configEdit conf/conf.ymlkafka: # kafka config
  bootstrap_servers: 127.0.0.1:9092 # kafka servers, multiple, 172.1.0.2:9092,172.1.0.1:9092
  group_id: group # consumer group
  topic_subscribe: # topic, multiple
    - topic1
    - topic2
  topic_produce: topic1_result # producer default topic2.demo-consumerimport json
from easy_kafka.kafka_consumer import EasyKafkaConsumer

def start_consumer():
    kafka_consumer = EasyKafkaConsumer('conf/conf.yml')
    print('consumer iterator started')
    for record in kafka_consumer:
        print('record', record.value)
        print('json', json.loads(record.value))

if __name__ == "__main__":
    start_consumer()3.demo-consumer-callbackimport json
from easy_kafka.kafka_consumer import EasyKafkaConsumer
from easy_kafka.kafka_producer import EasyKafkaProducer

kafka_producer = EasyKafkaProducer('conf/conf.yml')

def consumer_task(record):
    """
    consumer callback
    :param record: object
    :return:
    """
    print('consumer_task', record.value)
    print('json', json.loads(record.value))
    if record.topic is 'topic1':
        kafka_producer.produce_msg({'type': 'task result'})

def start_consumer():
    kafka_consumer = EasyKafkaConsumer('../conf/conf.yml')
    print('consumer task started')
    kafka_consumer.subscribe(fn=consumer_task)

if __name__ == "__main__":
    start_consumer()4.demo-producerfrom easy_kafka.kafka_config import EasyKafkaConfig
from easy_kafka.kafka_producer import EasyKafkaProducer

def demo_produce_msg():
    kafka_producer = EasyKafkaProducer('conf/conf.yml')
    kafka_producer.produce_msg({'name': 'ksust'})

def demo_produce_msg_with_config():
    config = EasyKafkaConfig('conf/conf.yml')
    print('config', config.__dict__)
    kafka_producer = EasyKafkaProducer(config)
    kafka_producer.produce_msg({'name': 'ksust'})
    kafka_producer.produce_msg_topic('topic1', {'name': 'ksust'})

if __name__ == "__main__":
    demo_produce_msg()
    demo_produce_msg_with_config()
Package: easy-kindle
easy_kindle is a command line tool written in python that’ll send documents to your kindle right from the command line. The tool asks for your primary approved Gmail address and password which is used to send the document and the Send-to-Kindle email address which you can find on the website.
The tool also saves the credentials locally into the tools in user data directory so that you don’t have to type in the email every single time.Supports only Python3.x and works on MacOS, Linux and Windows.
Package: easykivy
ABOUT EASYKIVY (EasyGUI based GUI)==================================EasyKivy provides an easy-to-use interface for simple GUI interactionwith a user, full compatible with de EasyGUI v.0.96 implementation.It does not require the programmer to know anything about Kivy.All GUI interactions are invoked by simple function calls that return results.Example Usage------------->>> import easykivy>>> easykivy.ynbox('Shall I continue?', 'Title', ('Yes', 'No'))1>>> easykivy.msgbox('This is a basic message box.', 'Title Goes Here')'OK'>>> easykivy.buttonbox('Click on your favorite flavor.', 'Favorite Flavor', ('Chocolate', 'Vanilla', 'Strawberry'))'Chocolate'Full documentation for EasyGUI is available (thanks EasyGUI developers).For the most-recent production version:<http://easygui.readthedocs.org/en/master/>.LICENSE INFORMATION===================LICENSE INFORMATIONEasyKivy version 0.96Copyright (c) 2016, Juan R. LamaAll rights reserved.Redistribution and use in source and binary forms, with or without modification,are permitted provided that the following conditions are met:1. Redistributions of source code must retain the above copyright notice,this list of conditions and the following disclaimer.2. Redistributions in binary form must reproduce the above copyright notice,this list of conditions and the following disclaimer in the documentation and/orother materials provided with the distribution.3. The name of the author may not be used to endorse or promote products derivedfrom this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISINGIN ANY WAY OUT OF THE USE OF THIS SOFTWARE,EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.@note:ABOUT THE EASYKIVY LICENSEThis license is what is generally known as the "modified BSD license",aka "revised BSD", "new BSD", "3-clause BSD".See http://www.opensource.org/licenses/bsd-license.phpThis license is GPL-compatible.See http://en.wikipedia.org/wiki/License_compatibilitySee http://www.gnu.org/licenses/license-list.html#GPLCompatibleLicensesThe BSD License is less restrictive than GPL.It allows software released under the license to be incorporated into proprietary products.Works based on the software may be released under a proprietary license or as closed source software.http://en.wikipedia.org/wiki/BSD_licenses#3-clause_license_.28.22New_BSD_License.22.29
Package: easy-kubernetes
Easy-KubernetesThis module has purpose to create easy and fast ways to communicate with the API from kubernetes, allowing the developer to create and manage their own data with their own way. Python is a great language and very well used for DevOps Automantions. With it, creating a kubernetes module will easy many steps and automantions allowing a better infrastructure automation or management with great performance.
This version requires Python 3 or later; a Python 2 version is not available… yet.FeaturesHandle kubernetes through your python script.Free to manage the data from kubernetes API on your own way.There’s functions to manage it too, if you don’t like the previous ideia.Simplify most of the kubernetes client functions to simple and unique interactions.Simple code, simple functions, simple management. Keep simple!InstallationTo install easy-kubernetes from PYPI:$ pip install easy-kubernetesTo install easy-kubernetes manually (please download the source code from eitherPYPIorGithubfirst):$ python setup.py installUsageTo use easy-kubernetes, just import this module with:$ from kubernetes import kubernetesThen, create a instance of the class with the functionality you desire:# Cria instancia com dados de acesso ao clusterK8s
$ k8s_config = kubernetes.config(url=<k8s_master_url>, token=<serviceaccount_token>)# Cria instancia para funcionalidades prontas do k8s
$ k8s_tools = kubernetes.tools()# Cria instancia com chamadas para REST API
$ k8s = kubernetes.core(configuration=k8s_config)After this, you will be able to use and explore all functionalities.Enjoy!CitingPlease cite the following paper if you use easy-kubernetes in a published work:Gustavo Toledo, Tiago Albuquerque. “Easy-Kubernetes: Improving kubernetes auto-management through Python 3”, 2018
Package: easykvchat
EasyKvChatPar ThisALV.L'applicationIl s'agit d'un ensemble client/serveur offrant un système de messagerie en GUI à l'aide deKivy.UtilitéCe projet a été conçu afin de me préparer au mieux au développement du client d'un autre de mes projets, bien plus conséquent.Pourquoi Kivy ?Tkinter devait initialement être utilisé, malheureusement celui-ci est insuffisant en terme de fonctionnalités pour la complexité du client Rbo.
Package: easylab
EasyLabOffers simple solutions with GUI. From a folder, it can resize images, change their extensions, applies spatial frequencies, and remove backgrounds...Purpose of the projectThe purpose of the project is to offer simple solutions to solve some of the problems that arise when working with big image datasets.The project is a work in progress, and it is not finished yet. Since it offers GUI, it is very practical to use it.FeaturesResize imagesChange extensionApply spatial frequencies (low pass, high pass with Butterworth filter)Apply Gaussian blurApply grayscale filter (RGB to Gray)Rename images (with a desired prefix)Remove background from images (Utilizes deep learning, so it is slow depending on the size of the images)Apply Histogram EqualizationApply CFA (Color Filter Array) filterinstallationInstall easylab with pip:pip install easylabUsageit is very simple to use the project.
For the open GUI, use the following command:from easylab import easylabthen open the gui with:easylab.easylabgui()This basically starts the GUI. First, select the input folder then select the output folder. Then just select the options you want to apply to the images. Rename images will change all image names from the input folder with the input prefix. Don't forget to add an extension if you use rename option.JavascriptI will also add some javascript to the online version. You can find js demos on the easylab websitehereE-prime scriptsget the trail list (Image names for the E-Prime) or create a jitter:https://altunenes.github.io/EasyLab/filenamesContributingContributions are welcome!Enes AltunMain AuthorCurrent look
Package: easylatex2image
Another Latex Converter 2 ImageThis is a simple converter from latex to pillow images. The main function is latex_to_image. The input packages_and_commands must include all packages and custom enviroments, custom commands. Just write it as normal latex. In packages_and_commands do not use \begin{document} just simple usepacke stuff and commands! The content argument is the content that should be visualized. This literally can be annything. We are using a real latexcompiler in the backend. out_file_name is a string or None if you don't want a file to bewritten. dpi is the resolution. Higher is better but with more storage.The output type is a pillow image so you can convert it to a numpy array with np.array(pillow_image) and then go from there. Also ofcourse you can safe it as png with pillow_image.save().importeasylatex2imagefromeasylatex2imageimportlatex_to_imagepackages_and_commands=r"""\usepackage[parfill]{parskip}\usepackage[german]{varioref}\usepackage{url}\usepackage{amsmath}\usepackage{dcolumn}\usepackage{tikz}\usetikzlibrary{shapes,arrows}\usetikzlibrary{intersections}\usepackage[all,cmtip]{xy}"""content=r"""\xymatrix{M \ar[d]_\kappa \ar[r]^f & A\\ K \ar[ur]_{f_K}}"""pillow_image=latex_to_image(packages_and_commands,content,"output.jpg",dpi=500,img_type="JPEG")Also with the r before the string you can just pass the latex code as it is without \n or something like that.InstallationThe libary needs miktex (link:https://miktex.org) to be installed. If you have AVast installed miktex might not work. A possible solution would togo to menugo to settings.go to execptions.add pdflatex command as execption.
Avast also might ask you if you want to make an execptions if you reboot.Alternative Solution: Use Linux :)
Package: easyLDA
easyLDA is a library that easily build LDA Topic Models with just a list of docs (e.g. a list of twitter posts in CSV/TXT)github:https://github.com/shichaoji/easyLDAIf you have a collection of documents, and what to explore the
relationship & topics of the docs, easyLDA is a very handy library to
use. Simply run the commend and you’ll get a trained LDA model with
results visualizedThe library pipeline text preprocessing, such as tf-idf, n-grams from Gensim libraryCredit to:https://radimrehurek.com/gensim/http://pyldavis.readthedocs.io/en/latest/readme.htmlinstallation$ pip install easyLDAusage examplesimple need a text file (.csv) with each row represents a document (a post, comment, short article etc.), with only one column which is the texttext file (csv) sample vieweasy to use, just in a shell window, type: easyLDA, then specify the location of the text document1. then choose how many topics you want the model to fit2. choose the topic contains only single word (1) or can be phases (2/3) as wellthe program will be starting to trainin shell $ easyLDAmodel resultmodels folder created by program contains the trained modelxx.html file is the interactive visulization of the model resultvisualization live examplehttp://shichaoji.com/2016/02/04/easylda-live-example/static pic result
Package: easyleetcode
easyleetcodeA simple Python leetcode study and running online toolJust need your computer to run the python environmentuse it, from web, just browser(No save code and take markdown function) :https://pyleetcode.gitee.io/use it, from pip：pip install easyleetcodethen , only 2 line code , in any location:fromeasyleetcodeimportrunrun()# or run(host="127.0.0.1", port=8080)use it, from source code :clone sourcethen:1.pip install these package >>['uvicorn', 'fastapi', 'pydantic', 'aiofiles', 'jinja2']2.run python script :easyleetcode/web/main.pyIntroductionHello Python programmerYou can use itBecome the God of leetcodeYou can use itRun or add your arbitrary Python code onlineYou can use itTake markdwon notes for any Python code you wantIt runs very smoothlyYou can use it as leetcode study packageindex viewcode list viewall code list , you can add new code oredit code or note markdown
or see video (if exist, tell me)or select contain keyword code use button 'Find'select codeonly see contain 'Sum' codecode show viewcode detail viewyou can run & debug & study & add code & note Markdownyou can edit you python code & run you code online !code markdown note viewcode's markdown noteyou can click Edit Button to Edit you notecode markdown note edit viewcode's markdown note can easy online edit, andyou can click Save Button to Save you Edited noteleft textarea to edit Markdown, right textarea show markdown's result view
Package: easyliftover
easy-liftoverThis repository wraps thepyliftoverpackage to provide an option for lifting over common file types.InstallationPyPiThis package is available viaPyPi. To install it, run:pip install easyliftoverDockerThis package is also available as aDocker image. To use it, run:docker pull bigdatainbiomedicine/easyliftoverUsagefromeasyliftoverimportliftover_path,liftover_urlresult=liftover_path(<fromGenome>,<toGenome>,<path>,<fileType>)result=liftover_url(<fromGenome>,<toGenome>,<url>,<fileType>)The fileType parameter is optional. If it is not provided, the file type will be inferred from the file extension.Supported file typesInformation about which file types are supported can be foundhere