Saravanan666/pypi-org huggingface dataset:
Package: easyrsa
Easy RSAEncrypt symmetric keys with RSA. Create self-signed certificates.Hierarchyeasyrsa
|---- EasyRSA()
|   |---- gen_key_pair()
|   |---- encrypt()
|   |---- decrypt()
|   |---- sign()
|   |---- verify()
|   '---- max_msg_size()
|---- Certificate()
|   |---- dump()
|   |---- basicConstraints()
|   |---- subjectAltName()
|   |---- keyUsage()
|   |---- extendedKeyUsage()
|   |---- subjectKeyIdentifier()
|   |---- authorityKeyIdentifier()
|   |---- issuerAltName()
|   |---- authorityInfoAccess()
|   |---- crlDistributionPoints()
|   |---- issuingDistributionPoint()
|   |---- certificatePolicies()
|   |---- policyConstraints()
|   |---- inhibitAnyPolicy()
|   |---- nameConstraints()
|   |---- noCheck()
|   '---- tlsfeature()
|---- CertificateAuthority()
|   |---- sign()
|   |---- dump()
|   |---- sign_certificate()
|   |---- verify_certificate()
|   |---- verify_certificate_from_raw()
|   |---- basicConstraints()
|   |---- subjectAltName()
|   |---- keyUsage()
|   |---- extendedKeyUsage()
|   |---- subjectKeyIdentifier()
|   |---- authorityKeyIdentifier()
|   |---- issuerAltName()
|   |---- authorityInfoAccess()
|   |---- crlDistributionPoints()
|   |---- issuingDistributionPoint()
|   |---- certificatePolicies()
|   |---- policyConstraints()
|   |---- inhibitAnyPolicy()
|   |---- nameConstraints()
|   |---- noCheck()
|   '---- tlsfeature()
'---- EasyRSAv1()
    |---- gen_key_pair()
    |---- encrypt()
    |---- decrypt()
    |---- sign()
    |---- verify()
    '---- max_msg_size()ExamplepythonSeetest.
Package: easyrun
### 介绍一个subprocess模块的封装,可以更方便的进行系统调用To Do List:1. return realtime result2. task async run[开发easyrun的环境是python3哦]### 安装pip安装```pip install easyrun```源码安装```git clone git@github.com:rfyiamcool/easyrun.gitcd easyrunpython setup.py install```### 使用方法只单纯的执行，然后返回linux run code和执行状态```>>> import easyrun>>> r = easyrun.run('uptime')04:06:37 up 2 min,  1 user,  load average: 0.20, 0.19, 0.08>>> r.output>>> r.successTrue>>> r.retcode0```捕捉所有的执行结果```>>> r = easyrun.run_capture('uptime')>>> r.output' 04:07:16 up 2 min,  1 user,  load average: 0.11, 0.17, 0.08\n'>>> r.successTrue>>> r.retcode0```把输出的结果精简过,maxlines是控制行数```print(run_capture_limited('ls', maxlines=2).output)```easyrun example usage:```from easyrun import run_capturer = run_capture('ls -la')if r.success:print(r.output)else:print("Error: '%s' exit code %s" % (r.command, r.retcode))print("         ...")# print last three lines of outputfor line in r.output.splitlines()[-3:]:print("       %s" % line)```
Package: easy-runner
EasyRunnerEasyRunner is a lightweight tool for managing and executing multiple parallel experiments. It simplifies the process of running multiple experiments with different configurations or hyperparameters, while monitoring system resources.FeaturesRun multiple experiments in parallelMonitor system resources (CPU and memory usage) during experimentsEarly termination of experiments by inputting the experiment numberColorized display of experiment status and resource usageGenerate a list of instructions from a template and argumentsInstallationTo use EasyRunner, simply download or clone this repository and then:pip install -e .UsageInitialize anEasyRunnerobject with the required parameters.Specificy a list of commandline instructions to run.Use thestartmethod to run experiments. You can specify a list of GPU IDs for running experiments (orNoneby default).Optionally, use thecomposemethod to generate a list of instructions from a template and arguments.A simple example for running a list of instructions (2 parallel) on cuda 0, 1:fromeasy_runnerimportEasyRunner# Initialize the EasyRunnerrunner=EasyRunner(log_name="experiment_logs")# Create a list of instructionsinstructions=["python script1.py --param1 0.1 --param2 100","python script1.py --param1 0.2 --param2 200","python script2.py --param1 0.3 --param2 300","python script2.py --param1 0.4 --param2 400","python script3.py --param1 0.5 --param2 500"]# Run experimentsrunner.start(instructions,gpus=[0,1],max_parallel=2)Anoter example of how to use thecomposefeature to perform grid search:fromeasy_runnerimportEasyRunner# Initialize the EasyRunnerrunner=EasyRunner(log_name="experiment_logs")# List of seeds, and tasksseeds=[0,10,20]tasks=["TaskA-v0 --epoch 30","TaskB-v0 --epoch 150","TaskC-v0 --epoch 80"]# Define the command templatetemplate="nohup python train_script.py --project my_project --seed{}--task{}"# Generate a list of instructions using the compose methodinstructions=runner.compose(template,[agents,seeds,tasks])# Run the experimentsrunner.start(instructions,max_parallel=4)You can try the example scripts in theexamplesfolder:cdexamples
pythontest_easy_runner.pyDemo video:LicenseThis project is licensed under the MIT License. See theLICENSEfile for details.ContributingWe welcome contributions to the Experiment Grid Tool. Please open an issue or submit a pull request on the GitHub repository.Feel free to customize this template according to your specific requirements or add any additional information you think would be helpful for users.
Package: easysave
ez save- an simple lib to save data in pythonthis is a lib which helps save data to files easily with basic encryption.it's nothing complex and more of a learning project for me.docs:https://github.com/tbubhnh/ez_save/blob/master/docs/docs.mdexamples:https://github.com/tbubhnh/ez_save/tree/master/examplesinstallationpip install ezsave
Package: easysched
easyschedeasysched is lightweight framework to easily schedule multiple tasks designed to be easily configurable by just a
configuration file using default python tools.With this framework you can call every type of executable, independent of the programming language, for instance
bash/perl scripts, C/C++ programs, Java... or any other executable. Additionally, you can define the priority of a Task,
which user should be the callee and if the Task should be run once or cyclic by defining the Task execution interval and
if the output of a process should be logged into a file.All of this is easily configurable with only one configuration file. The parse process is based on the configparser class
of python3.X with the extended interpolation feature and enriched with additional functionality to call tasks.InstallationYou can find the latest version onPyPi. So simply usepipwithpip install easyschedAfter installingeasyschedthere is a fileeasysched.servicein the<venv>/share/directory in order to set upeasyschedas a user service. Just replace the sample configuration file with the one on your system and then runsudo systemctrl enable <venv>/share/easyschedUsageA sample simple configuration fileexample.cfgcan be found next to the service file with the following content:[easysched]
Task-tag=Task:
tmp-dir=/tmp/
log-dir=${tmp-dir}

[Task:PrintDateEverySecond]
command=/bin/echo
parameters=$$(date +"%Y%m%d %H%M%S")
interval=1

[Task:PrintEveryFiveSeconds]
command=/bin/echo
parameters=$$(date +"%Y%m%d %H%M%S")
interval=5The section for general information is named easysched so that you can use this configuration
file for other scripts, too. You can define where to save log files with thelog-dirand temporary file
with thetmp-dirattribute.TheTask-tagoption in the easysched section is optional - by default the tagTask:is assumed
to be the section tag for defining tasks. Feel free to change this to your needs.For attributes defined in the config files ending with-dir, the directories will be created by easysched. You don't
have to create them manually.Start easyschedIn order to run the easysched deamon with the example configuration given above, simply runesdd --config=venv/share/example.cfgControl easysched tasksNow that easysched is running it waits for commands to start, pause, stop or terminate aTask. In order to send
easysched such commands, use the easysched control toolesdctrl.For instance, to start the taskPrintEveryFiveSecondsin the example configuration, run the following command:esdctrl task PrintEveryFiveSeconds start
Package: easysciencecore
easyCoreis the foundation of theeasyScienceuniverse, providing the building blocks for libraries and applications which aim to make scientific data simulation and analysis easier.InstalleasyCorecan be downloaded using pip:pip install easysciencecoreOr direct from the repository:pip install https://github.com/easyScience/easyCoreTestAfter installation, launch the test suite:python -m pytestDocumentationDocumentation can be found at:https://easyScience.github.io/easyCoreContributingWe absolutely welcome contributions.easyCoreis maintained by the ESS and on a volunteer basis and thus we need to foster a community that can support user questions and develop new features to make this software a useful tool for all users while encouraging every member of the community to share their ideas.LicenseWhileeasyCoreis under the BSD-3 license, DFO_LS is subject to the GPL license.
Package: easy-scrap
easy_scrapA simple Python package for scrapping images from Google Image SearchInstallationThe package is available for pip installationpipinstalleasy_scrapUsageThe main class isGoogleImageScrapper, which takes query as argument, searches for image
links and downloads them to a separate folder. Folders for saving the images will be created on the
runtime.A basic example of usagefromeasy_scrapimportGoogleImageScrapperquery="fruits"save_folder_name="fruit"n_images=100# parse Google Image Search html page for image linksscrapper=GoogleImageScrapper(query=query,save_folder_name=save_folder_name,n_images=n_images)# download and save imagesscrapper.download_all_images()TODOsAdd option to parse queries from the shellAdd other search systemsTry asynchronous download for speed boostHandle issue when first 3 downloaded images are some Google icons
Package: easyscrape-amazonsuggest
EasyScrape-AmazonSuggestScrape Amazon Searchbar Suggested TermsInstructionsInstall:pip install easyscrape-amazonsuggestGet Amazon Suggestions for a Search Term:fromeasyscrape_amazonsuggestimportquerysuggestionsasAS# Request suggestions for a search termASResults=AS.query("Monty Python")ASResults['monty python shirt','monty python and the holy grail','monty python','monty python blu ray','monty python gifts','monty python and the holy grail merchandise','monty python flying circus complete series','monty python dvd','monty python door mat','monty python fluxx']AS.query returns a list of strings with the results.
Package: easyscrape-bingsuggest
EasyScrape-BingSuggestScrape Bing Searchbar Suggested TermsInstructionsInstall:pip install easyscrape-bingsuggestGet Bing Suggestions for a Search Term:fromeasyscrape_bingsuggestimportquerysuggestionsasBS# Request suggestions for a search termBSResults=BS.query("Monty Python")BSResults['Monty Python','monty python','monty python and the holy grail','monty python movies',"monty python's flying circus",'monty python cast','monty python spam','monty python life of brian','monty python quotes']BS.query returns a list of strings with the results.
Package: easyscrape-ebaysuggest
easyscrape-ebaysuggestScrape Ebay search suggestions in PythonInstructionsInstall:pip install easyscrape-ebaysuggestGet Ebay Suggestions for a Search Term:fromeasyscrape_ebaysuggestimportquerysuggestionsasES# Request suggestions for a search termESResults=ES.query("Mony Python")ESResults['monty python and the holy grail','monty python flying circus complete','monty python and the holy grail vhs','monty python','monty python and the holy grail blu ray','monty python and the holy grail action figures','monty python flying circus complete dvd','monty python funko pop','monty python and the holy grail dvd','monty python shirt']ES query returns a list of strings with the results.
Package: easyscrape-etsysuggest
easyscrape-etsysuggestScrape Etsy search suggestions with PythonInstructionsInstall:pip install easyscrape-etsysuggestGet Etsy Suggestions for a Search Term:fromeasyscrape_etsysuggestimportquerysuggestionsasES# Request suggestions for a search termESResults=ES.query("Mony Python")ESResults['monty python','monty python doormat','monty python sticker','monty python shirt','monty python holy grail','monty python t-shirt','monty python clock','monty python car decal','monty python costume','monty python rugs','monty python pin']ES query returns a list of strings with the results.
Package: easyscrape-googlesuggest
EasyScrape-GoogleSuggestScrape Google Auto Suggest ResultsInstructionsInstall:pip install easyscrape-googlesuggestGet Google Suggestions for a Search Term:fromeasyscrape_googlesuggestimportgetsuggestionsasES# Request suggestions for a search termESResults=ES.query("Mony Python")ESResults['monty python and the holy grail','monty python movies','monty python cast','monty python life of brian','monty python and the holy grail quotes',"monty python's flying circus",'monty python rabbit','monty python quotes']ES_query returns a list of strings with the results. You can optionally set the requests header as the second argument if you wish to include a custom header.
Package: easy-scraper-py
easy-scraper-pyAn easy scraping tool for HTMLGoalRe-implementation oftanakh/easy-scraperin Python.Install from PyPIpipinstalleasy-scraper-pyUsage ExampleScraping texts<!-- Target: full or partial HTML code --><body><b>NotMe</b><aclass=here>Here</a><aclass=nothere>NotHere</a></body><!-- Pattern: partial HTML with variables ({ name }) --><aclass=here>{ text }</a>importeasy_scrapertarget=r"""<body><b>NotMe</b><a class=here>Here</a><a class=nothere>NotHere</a></body>"""# newlines and spaces are all ignored.# Matching innerText under a-tag with class="here"pattern="<a class=here>{ text }</a>"easy_scraper.match(target,pattern)# [{'text': 'Here'}]Scraping linkstarget=r"""<div><div class=here><a href="link1">foo</a><a href="link2">bar</a><a>This is not a link.</a><div><a href="link3">baz</a></div></div><div class=nothere><a href="link4">bazzz</a></div></div>"""# Marching links (href and innerText) under div-tag with class="here"pattern=r"""<div class=here><a href="{ link }">{ text }</a></div>"""asserteasy_scraper.match(target,pattern)==[{"link":"link1","text":"foo"},{"link":"link2","text":"bar"},{"link":"link3","text":"baz"},]Scraping RSS (XML)easy-scraper-pyjust useshtml.parserfor parsing, also can parse almost XML.importeasy_scraperimporturllib.requestbody=urllib.request.urlopen("https://kuragebunch.com/rss/series/10834108156628842505").read().decode()res=easy_scraper.match(body,"<item><title>{ title }</title><link>{ link }</link></item>")foriteminres[:5]:print(item)Scraping Imagesimporteasy_scraperimporturllib.requesturl="https://unsplash.com/s/photos/sample"body=urllib.request.urlopen(url).read().decode()# Matching all imagesres=easy_scraper.match(body,r"<img src='{ im }' />")print(res)# Matching linked (under a-tag) imagesres=easy_scraper.match(body,r"<a href='{ link }'><img src='{ im }' /></a>")print(res)
Package: easyselect
easyselect by gmankaa useful library that allows the user to select between multiple items in the console using the keyboard. Supports very long lists that don't fit on the screen,rich styles, control with buttonsup,down,left,right,wasd,j,h,home,end,page up,page downnavigationinstallationusageprint text while choosingrich styles supportlong items list supportpage sizesupported buttonschangeloglicenseinstallation^pipinstalleasyselectusage^fromeasyselectimportSelyes_or_no=Sel(items=['yes','no',])answer=yes_or_no.choose()print(answer)print text while choosing^yes_or_no=Sel(items=['yes','no',],text='please select yes or no')rich styles support^linux onlyyes_or_no=Sel(items=['yes','no',],styles=['green','red'])rich styles documentationvery long items list support^nums=Sel(items=list(range(50)))page size^page_size arg allows to specify how much lines will be rendered on screendefault value is 15nums=Sel(items=list(range(50)),page_size=3)supported buttons^user will able to use these buttonsup, down, left, rightw, a, s, d, j, khome, endpage up, page downchangelog^you can read changelogherelicense^gnu gpl 3
Package: easysemver
easysemverThis package provides utilities for comparingSemVerversions,
with special attention on the correct treatment of prerelease parts.Installationeasysemveris currently installed directly from GitHub:pipinstallgit+https://github.com/stackhpc/easysemverUsageBefore versions can be compared, they must be converted intoVersionobjects. If the version
is not valid SemVer, aTypeErrorwill be raised.fromeasysemverimportVersion# Not a valid SemVer version, so raises TypeErrorversion=Version("20230809-1")# Create a SemVer versionversion=Version("1.2.3")# Prerelease and build parts are supportedversion=Version("1.2.3-alpha.0+abcdefg")# Comparing versions respects prerelease parts#   The following all resolve to TrueVersion("1.2.3")<Version("1.2.4")Version("1.2.3")<Version("2.0.0")Version("1.2.3")<Version("1.2.4-alpha.0")Version("1.2.3-alpha.0")<Version("1.2.3")#   Prerelease parts that are all digits are compared as numbersVersion("1.2.3-alpha.0")<Version("1.2.3-alpha.100")#   Prerelease parts that are strings are compared as stringsVersion("1.2.3-alpha.0")<Version("1.2.3-beta.0")#   Note that build parts don't affect comparisonVersion("1.2.3")==Version("1.2.3+abcdefg")Versions can also be compared to a SemVer range, which consists of a number of constraints
separated by commas. Similar toVersion, aTypeErrorwill be raised if the constraints
are not valid.The supported constraints are SemVer versions with an operator, where the supported operators
are==,!=,>=,>,<=and<.fromeasysemverimportRange,Version# Resolves to TrueVersion("1.2.3")inRange(">=1.0.0,<2.0.0")# Resolves to FalseVersion("1.2.3")inRange(">=2.0.0")# Prerelease versions are only considered part of a range if the lower bound includes a prerelease part#   Resolves to FalseVersion("1.2.3-alpha.0")inRange(">=1.0.0")#   Resolves to TrueVersion("1.2.3-alpha.0")inRange(">=1.0.0-0")# Specific versions can be exclulded#   Resolves to FalseVersion("1.2.3")inRange(">=1.0.0,<2.0.0,!=1.2.3")#   Resolves to TrueVersion("1.2.4")inRange(">=1.0.0,<2.0.0,!=1.2.3")
Package: easyserial
Easy Serial 😎What is this?This is a thread safe Python3 implementation of an high level serial protocol currently used in the Forecast project.This package core functionality is to grant ease of use to end users unfamiliar with the protocol through different layers of abstraction. It is currently built on top of the more known library PySerial, which offers an easy interface to compliant posix/win32 serials.A simple logger script is also included, which is callable from console:easyserial-loggeroreasyserial-logger -p <PORT> -b <BAUDRATE>InstallationFrom pypipip install easyserialFrom sourceClone the repositoryRun the following commandscdeasy-serial# Using pipenvpipenvinstall# or just using pippipinstall-e.Exampleimporteasyserialport="/dev/ttyACM0"baudrate=115200witheasyserial.Serial(port=port,baud=baudrate)asserial:# Read package example# tries specifies the number of attempts to read from serial a full package (default: infinite)package_type,payload=serial.read_package(tries=1)# In case you want to skip unescaping and checksum checkspackage=serial.read(tries=1)# In order to write to serialserial.write(package)
Package: easy-serialize
Easy-SerializeTurn custom python objects into strings and vice-versa.Strengthsno extra code to write in most casessupports jsonsupports nested objectsno dependencies outside of python's library (only pytest for developing)ability to add methods to control serializing and deserializingDrawbacksobjects like tuples are automatically turned into listsonly supports json right nowcan't handle circular referencesif an object has references in many places, it will be present in the json repeatedly and after deserializing will be separate objectsBecause of this, it cannot handle linked lists or similar interconnected data structures wellstores__dict__of the object, so classes using__slots__will likely require overriding theserializemethod anddeserializeclassmethod.Because it needs to create the object and then copy over all the values of__dict__, it doesn't know the arguments used in__init__. Thus if the class requires arguments in__init__, the object will be created with__new__which avoids calling__init__. However, if__init__can take zero arguments, it will be called. A warning will be emitted if__init__is not called.How to useExtendSerializableclass A(Serializable):
    ...or use themake_serializabledecorator@make_serializable
class A:
    ...serialize usingserialize(object_to_serialize)and deserialize usingdeserialize(stringified_object)Custom serializingIn the case that the standard method doesn't cut it, it is
possible to add custom serializing and deserializing methods to a class@make_serializable
class A:
    def __init__(self, x):
        self.x = x

    def serialize(self) -> dict:
        return {'x': self.x}

    @classmethod
    def deserialize(cls, data: dict) -> 'A':
        return A(data['x'])FutureThings to possibly add:other data formats like xml or the likesupport for objects with circular references
Package: easyserializer
easyserializer简易对象序列化工具
serialize a object$ pip install easyserializerfromeasyserializerimportSerializeableObject,obj_to_dict,obj_to_json,serializeimportdatetimeclassStudent(object):role='student'def__init__(self,name,birthday):self.name=nameself.birthday=birthday@propertydefage(self):returnint(((datetime.datetime.now().date()-self.birthday).days)/365)classTeacher(SerializeableObject):role='teacher'def__init__(self,name,subject,students):self.name=nameself.subject=subjectself.students=studentss0=Student('Dad',datetime.date(1963,7,28))s1=Student('Mom',datetime.date(1964,11,2))t=Teacher('Tao','physics',[s0,s1])# =============== 传参说明 =================# filter_fields:  指定输出字段，可使用 list 和 dict 两种传参形式#                 示例: obj_to_dict(obj, 'field1', 'field2', filter_fields=['field3', 'field4'])#                 默认为输出所有字段# exclude_fields: 过滤不要输出字段# limit_deep:     限制递归深度, 默认5层. 设为0则不限制递归深度(不建议这么做!)# prune:          精简模式(只取 `__dict__` 中的字段, 默认不开启)# 继承自 SerializeableObject 的对象直接调用 serialize 方法，该对象转换为 dict 返回print(t.serialize())print(t.serialize('name','students'))# 调用对象的 to_json 方法，对象以 json 字符串形式返回 (可传入 json.dump 的参数如 `indent`)print(t.to_json())print(t.to_json(exclude_fields=['role'],indent=4))# 也可以直接使用 obj_to_dict, obj_to_json 这些函数print(obj_to_dict(t,limit_deep=2))print(obj_to_json(t,prune=True,indent=4))
Package: easy-server
OverviewTheeasy-serverpackage is a Python library for securely defining
sensitive information for accessing servers (or services), such as logon
credentials or API keys.The information for accessing the servers is divided into a general portion
that is defined in an openly accessibleserver file, and
a sensitive portion that is defined in an encryptedvault file.The vault file defines the secrets needed to access the servers, such as
logon credentials or API keys. The vault file must be an “easy-vault” file and
thus can be encrypted and decrypted using theeasy-vaultcommand provided
by theeasy-vaultpackage.
The “easy-vault” files remain encrypted in the file system while their content
is used to access the servers.The server file defines general information about the servers, such
as a short description, contact name, or a reminder which network to use for
accessing them.The link between the server file and the vault file are user-defined
nicknames for the servers. These nicknames can also used by users as a
convenient way to identify servers in commands.The server files support the definition of server groups that
also have a nickname.Typical use cases for theeasy-serverpackage are test programs
running end-to-end tests against real servers, or command line clients that
access servers or services.This provides a convenient, flexible and secure way how Python programs can
retrieve the secrets needed for accessing servers or services, while protecting
these secrets in a secure way.Documentation and change logDocumentationChange logLicenseTheeasy-serverproject is provided under theApache Software License 2.0.