Saravanan666/pypi-org huggingface dataset:
Package: easycommandline
easycommandline.pya solution for python command-line interfaces, inspired bytj/commander.jsInstallation$ pip install easycommandlineOptionOptions are defined with the.options()method, also serving as
documentation for the options. The example below parses args and options
fromsys.argv# file favcolor.pyfromeasycommandlineimportprogramprogram.version('1.0.1')program.options(('-r','--red'),('-g','--green'),('-b','--blue'),('-w','--white'),)program.parse_argv()ifprogram.red:print('- red')ifprogram.blue:print('- blue')ifprogram.white:print('- white')$ python favcolor.py -r -w
    - red
    - whiteCoercion# file coercion.pyfromeasycommandlineimportprogramdefcollect(value,previous_value):previous_value.append(value)returnprevious_valuedefmake_range(value):components=value.split('..')returnrange(int(components[0]),int(components[1]))defsum(value,previous_value):returnprevious_value+int(value)program.version('1.0.1')program.options(('-r','--recursive'),('-p','--preload','preload enabled'),('-n','--name','username'),('-i','--integer <int>','an integer argument',int),('-f','--float <float>','a float argument',float),('-a','--anotherfloat','another float argument',float),('-c','--collection [example]','collection',collect,[]),('-x','--range A..B','range',make_range),('-s','--sum','the sum of numbers',sum,0),)program.parse_argv()print('recursive  : ',program.recursive)print('preload    : ',program.preload)print('name       : ',program.name)print('integer    : ',program.integer)print('float      : ',program.float)print('collection : ',program.collection)print('range      : ',program.range)print('sum        : ',program.sum)$ python coercion.py -p --name Tracy -i 1000 --range 5..8 -s 1 2 3 4
    recursive  :  None
    preload    :  True
    name       :  Tracy
    integer    :  1000
    float      :  None
    collection :  []
    range      :  [5, 6, 7]
    sum        :  10Commandspecifiesargument required with< >argument optional with[ ], cannot specify more thanoneoptional argument# file cmd.pyfromeasycommandlineimportprogramimportosprogram.version('1.0.1')cmd=program.cmd('cd <path>')cmd.options(('-c','--create','create directory if not existed'),)cmd.description('change directory')@cmd.actiondefaction_for_cmd_cd(cmd,path):ifcmd.createandnotos.path.exists(path):os.makedirs(path)cmd=program.cmd('start server <path> [env]')@cmd.actiondefaction_for_cmd_start_server(cmd,path,env):print(path)print(env)program.parse_argv()$ python cmd.py cd ~/Desktop/abc -c
$ python cmd.py start server ~/Desktop/abc productionAutomated –help$ python coercion.py -h

    Usage: python coercion.py [options]

    Options:

    -h, --help                  output usage information
    -V, --version               output the version number
    -r, --recursive
    -p, --preload               preload enabled
    -n, --name                  username
    -i, --integer <int>         an integer argument
    -f, --float <float>         a float argument
    -a, --anotherfloat          another float argument
    -c, --collection [example]  collection
    -x, --range A..B            range
    -s, --sum                   the sum of numbers
Package: easy-communication
Easy CommunicationIt is a simmple module to create communication between diferent processes.A Server sample:importeasy_communications=easy_communication.Server()defecho(x):print(x)return"New message"s.handler=echos.start()How to send data from other proccess:importeasy_communicationdata="my data"returned_data=easy_communication.send_data(data)assertreturned_data=="New message"
Package: easycon
easyconA easy-use tool to connect to a remote server, by which one can easily login, upload and download files to and from a remote server. One can also connect to a server behind a NAT. This tool is developed onparamiko.Installpip install easyconUsageOne can find the instruction by run commandeasyconin terminal directly.(For windows users, one can tryeasyconoreasycon.bat)In the following, some of the examples are given:login remote server:easycon --config <configfile> --login(One can obtain a<configfile>template by--mkconfig)upload file(dir) into remote server:easycon --config <configfile> --put <example.txt>download file(dir) from server:easycon --config <configfile> --get <example.txt>jump over NAT:scenery: One need to login a server that is in a private subnet (behind a NAT) shown as following:local host-->jumpbox-->targetOne can get two configurate file<jump.txt>and<target.txt>and execute:easycon --config <target.txt> --jump <jump.txt>One can find more in instruction.Update2020.08.15add easycon-cli (interactive cli tool)2019.04.02add --dynamic   (ssh -D)2019.03.31add --jump2019.03.27add --loginw2019.03.16Update sshapi.Update 2019.03.10Windows supportedUpdate 2019.03.08fix bugFix know bugs for login. This is an old issue relate to stdin. Details seehere. The solution ishere.addput/getto upload/download directorychange the format of the configuration file.
Package: easyconfig
easyconfigEasy application configuration with yaml filesDescriptionEasyconfig simplifies the configuration management for (small) applications.Validation and parsing of the configuration file is done throughpydanticand easyconfig builds on that.
It's possible to use all pydantic features and model features so every exotic use case should be covered.
If you have previously worked with pydantic you should feel right at homeDocumentationThe documentation can be found at hereFeaturesDefault.ymlfile generationEnvironment variable expansionSupport for docker secretsCallbacks when values of the configuration changeWhy not pydantic settingsA pydantic settings object is a non-mutable object.
With easyconfig you can create a global configuration and just import it into your modules.
When your application starts you can read the configuration e.g. from a settings file and the object values
will change the values accordingly.Additionally, easyconfig can create a default configuration file with the specified default
values and comments of the pydantic models.
That way the users can have some guidance how to change the program behaviour.ExpansionIt's possible to use environment variable or files for expansion. Easyconfig will load all valuesChangelog0.3.2 (2024-01-10)Updated CI and code linters0.3.1 (2023-11-10)Updated dependencies and code linters0.3.0 (2023-03-17)Breaking: requires pydantic 2.0Added support for variable expansion through environment variables and docker secrets0.2.8 (2023-02-08)Fix for StrictBool0.2.7 (2023-01-09)Fixed default generation for data types that inherit from python base types0.2.6 (2022-12-21)Fixed an issue where the default yaml file would not be created properly when using aliases in container0.2.5 (2022-10-21)Marked package as PEP 561 compatible (py.typed)0.2.4 (2022-04-19)Default values get validated, too0.2.3 (2022-04-08)Added extra kwargs check for pydantic fieldsAdded option to get generated yaml as a string0.2.2 (2022-03-31)Added convenience base classesAppBaseModelandBaseModelWorks with private attributes and class functionsFixed an issue where multiline comments would not be created properlyAdded an option to exclude entries from config file0.2.1 (2022-03-25)Allow callbacks for file defaults0.2.0 (2022-03-25)Switched to new and more flexible APIFile default and config default are now separated0.1.2 (2022-03-08)Comments get nicely intendedFixed an issue with nested data structuresAllow to specify a different value for file creation0.1.1 (2022-02-26)Fixed an issue with dynamic defaultsOptional values with default None will not be created in the yaml file0.1.0 (2022-01-10)Updated requirements0.0.2 (2021-09-16)Validate user defaultsUse json representation of values to get native yaml data typesUse enum values instead of enum types0.0.1 (2021-09-14)Initial release
Package: easy-config
Here is a full working example of using easy_config. First, write your configuration class:# config.pyfromeasy_configimportEasyConfigclassMyProgramConfig(EasyConfig):FILES=['myprogram.ini']NAME='MyProgram'# the name for the .ini file section and the namespace prefix for environment variables# define the options like you would a dataclassnumber:intname:strcheck_bounds:bool=True# options with defaults must all come after non-default optionsA sample configuration file:# myprogram.ini[MyProgram]# section name matches `NAME` from the configuration classnumber=3And a sample program to illustrate the usage:# test_config.pyimportsysfromconfigimportMyProgramConfigprint(MyProgramConfig.load(name=sys.argv[1])Running this program with various options:$pythontest_config.pyScottMyProgramConfig(number=3,name='Scott',check_bounds=True)$envMYPROGRAM_CHECK_BOUNDS=Falsepythontest_config.pyScott# environment variable names are the all-uppercase transformation of the NAME concatenated with the option name and an underscoreMyProgramConfig(number=3,name='Scott',check_bounds=False)$envMYPROGRAM_NUMBER=10MYPROGRAM_NAME=Charliepythontest_config.pyScottMyProgramConfig(number=10,name='Scott',check_bounds=True)As you can see, values are taken in precedence, with arguments passed toloadoverriding values from the environment which, in turn, override values from configuration files.Once you have theMyProgramConfiginstance, you can use it just like any dataclass.
Package: easy-config-py
easy_configThis library can be used to read and parse configuration files to dict more
conveniently, borrowed and modified addict for more convenient use.LicenseMIT License

Copyright (c) 2023 cookieGeGe

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: easy-configs
Example:
ifname== 'main':
file = open('config.config', 'w+') # open config file.
config = Reader.load(f=file) # one way is the load function it uses an file object and then reads the config from there.
print(config)
# or:
# text = file.read()
#  config = Reader.loads(text) # Loads the config from text.
# Get a spicific value from config without loading it: Reader.get(filename='config.config', name='The Name') # returns the value of the given name from the config.
# Get a spicific value from config text: Reader.get_from_raw_text(name='The Name', text='Text to find the name in') # returns the value of the given name from the text
Dumper.create_basic(filename='config.config') # creates a basic config and writes Version 1.0 in it.
# Write something to the config: Dumper.add(filename='config.config', name='The Name', value='The Value')
# Write Moultiple Things to your config: Dumper.dump(filename='config.config', names=['System'], values=['Windows']) # it uses the enmurate function.
Package: easycore
easycoreeasycore is a collection of tools to support research and development.This project is inspired byfacebookresearch/fvcore. Some code in this project is modified from fvcore's code.English|中文Features and Todoslight weight and flexible config toolsmultiprocessing acceleration toolsregister mechanismflexible path manage tools (support local path, remote URL, path redirecting)InstallInstall from PyPIpipinstalleasycoreInstall from GitHubpipinstall'git+https://github.com/YuxinZhaozyx/easycore.git'Install from a local clonegitclonehttps://github.com/YuxinZhaozyx/easycore.gitcdeasycore
pipinstall-e.Documentationeasycore DocumentationLicenseThis library is underMIT LICENSE.
Package: easy-cozmo
===========
easy_cozmoeasy_cozmo provides a bunch of python wrappers for Anki Cozmo's SDK. You might
find it most useful for educational tasks involving students with little CS
background. This library was created for a series of workshops for high shool
students in Qatar. The code has been used by over 1,000 students over one year.
Typical usage often looks like this::"""
Makes cozmo saying "hello world"
"""

from easy_cozmo import *

def cozmo_program():
	say("Hello world")

run_program_with_viewer(cozmo_program)DocumentationTake a look at the documentation <http://www.example.com/foo/bar>_.
Package: easyCrawler
简易爬虫0.1.0使用手册easyCrawler0.1.0 User's guidance[https://github.com/theCoder-WM]点击此处反馈问题_click_here_to_feedbackfromeasyCrawlerimport*url='***'crawler=Crawler(url)crawler.get_soup()crawler.find_all('span',class_name='hello-world')crawler.data_processing()# data.textcrawler.data_processing('href')# data.attrs['href']print(crawler.data_new)
Package: easycrystallography
easyCrystallographyis a library that can be used for the generation and manipulation of crystal structures.InstalleasyCrystallographycan be downloaded using pip:pip install easyCrystallographyOr direct from the repository:pip install https://github.com/easyScience/easyCrystallographyTestAfter installation, launch the test suite:python -m pytestContributingWe 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
Package: easycv
Computer Vision made easy.DocumentationWe provide detailed documentation of allEasyCVmodules onread the docs.You can view and run interactive exampleshere.InstallationYou can installEasyCVusingpipor from source.Using PipFirst ensure that you have the latest pip version to avoid dependency errorspip install --upgrade pipThen installEasyCVand all its dependencies usingpippip install easycvFrom SourceClone the repository fromgithubgit clone https://github.com/Resi-Coders/easycv.git
cd easycv
pip install .You can view the list of all dependencies within theinstall_requiresfield
ofsetup.py.Running the testsIf you don't havepytestinstalled runpip install pytestTo run all tests just runcd easycv
pytest .VersioningSemVeris used for versioning. For available versions see thetags on this repository.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: easycython
Because writing a setup.py each time is painful.StatusLinux:x642.73.43.53.6Windows:x862.73.43.53.6x642.73.43.53.6Introductioneasycython.pyis a script that will attempt to
automatically convert one or more.pyxfiles into
the corresponding compiled.pyd|.sobinary modules
files. Example:$ python easycython.py myext.pyxpip install easycythonwill automatically create an
executable script in yourScripts/folder, so you
should be able to simply:$ easycython myext.pyxor even:$ easycython *.pyxYou can type:$ easycython -hto obtain the following CLI:usage: easycython.py [-h] [--annotation] [--no-annotation] [--numpy-includes]
                     [--no-numpy-includes]
                     [filenames [filenames ...]]

positional arguments:
  filenames

optional arguments:
  -h, --help           show this help message and exit
  --annotation
  --no-annotation      (default: True)
  --numpy-includes
  --no-numpy-includes  (default: True)--annotation(default) will emit the HTML Cython annotation file.--numpy-includes(default) will add the numpy headers to the build command.Compiler flags-O2 -march=nativeare automatically passed to
the compiler. I have not yet had to step through the generated
C code with a debugger.
Package: easydarkfigs
easydarkfigs - iPython Magic for easy Dark/Light Matplotlib figuresInstallationeasydarkfigscan be installed throughpipviapip install easydarkfigsUsageWithin an active iPython or Jupyter environment:importeasydarkfigsThen, at the beginning of a cell where a Matplotlib figure is created:%%savefig_dark_lightfigname.ext# Code# to# create# figureThis will save two versions of the created figure, using theeasy-darkandeasy-lightMatplotlib style files
included with this package.To customize these default styles, edit them in yourmatplotlib directory.To change the default figure save location or styles to use:%set_darkstylenew-style%set_darkfigdirmy/dir/%set_lightstylenew-style%set_lightfigdirmy/dir/The code also makes a boolean variableis_darkavailable during execution, the value of which changes depending on which version of the plot is being created.%%savefig_dark_lightfigname.extifis_dark:title='This Is A Dark Plot'else:title='This Is A Light Plot'plt.title(title)
Package: easy-database
easy_databasedescriptionThis is a personal package used to hold code patterns used for relational ETL database access.Usageenvironment setuppyenv install 3.8.0
pyenv virtualenv 3.8.0 app_3.8
pyenv activate app_3.8

# for integration tests
export PASSWORD=testing1234
export USERNAME=testing1234
export DATABASE=testing1234
export TABLE=customers
export INTEGRATION_TEST=True
export DB_IP_ADDRESS=127.0.0.1
export DATABASE_TYPE=postgresql
sudo --preserve-env docker-compose uppythonimport easy_database.database as db

database_manager = db.database_factory("postgresql")
database_manager.set_connection_string("...")
database_manager.open_conn()
database_manager.send_sql("SELECT * FROM TEST;")
database_manager.close_conn()
Package: easy-data-explorer-amandeepfj
Easy Data ExplorerPython library to do common data exploring tasksTo buildGenerate distpy -m pip install --upgrade buildpy -m buildUpload distpy -m pip install --upgrade twinepy -m twine upload  dist/*Install librarypy -m pip install easy-data-explorer-amandeepfjUpgrade to latest version librarypy -m pip install easy-data-explorer-amandeepfj -U
Package: easydataframe-lipsum
Easy DataframeWhat is this library?This library is used when using the xlsx file as pandas.DataFrame.It is intended for use in small-scale development.What kind of function does it have?A function to judge whether it is xlsx or csv from the file path and read it as a data frame(from dataframe_in import read)Ability to read a specific cell(from dataframe_helper import read_cell)Check if there is NaN or None in the data frame※ Most functions try to treat the elements of the data frame as str(from dataframe_helper import _any_to_str).usepip install easydataframe-lipsumpython3>>> import lipsum_easydataframe.dataframe_helper as helper>>> helper.example()Required librarypandasRequired SystemWindows10 == useWindows and usePython >= Python3.8
Package: easydatejiakai
EasyDateEasyDate is a simple Python package for performing common date and time operations with ease.FeaturesGet the current date and time in a readable format.Calculate the number of days between two dates.Determine the weekday for a given date.InstallationTo install EasyDate, simply use pip:pipinstalleasydatejiakaiUsageHere's a quick example of how to use EasyDate:fromeasydatejiakaiimportget_current_datetime,calculate_days_between,get_weekdayprint(get_current_datetime())# Prints the current date and timeprint(calculate_days_between("2024-01-01","2024-01-31"))# Prints the number of days between two datesprint(get_weekday("2024-01-01"))# Prints the weekday of a given dateLicenseThis project is licensed under the MIT License.
Package: easydb
# EasyDBA really simple **SQLite wrapper** that saves you from having to worry about creating tables or managing connections.It can be used on existing SQLite database by simply passing in the database filename:```pythonfrom easydb import EasyDBdb = EasyDB('filename.db')cursor = db.query("SELECT * FROM mytable")```New databases can be creating by specifying your schema as a dictionary, eg:```pythonschema = {'table_name': ['column_name column_type', …],'table_name': ['column_name column_type', …],'table_name': ['column_name column_type', …]}db = EasyDB('filename.db', schema)```If the database file already exists then the schema won't be updated, but if it doesn't exist then it'll be created with the given schema. Here's a full example:```pythonfrom easydb import EasyDBdb = EasyDB('my.db', {'users': ['username text', 'description text']})db.query("INSERT INTO users (username, description) VALUES (?, ?)", ('ben', 'some sort of description'))for result in db.query("SELECT * FROM users"):print result# => ('ben', 'some sort of description')```
Package: easydb-json
InstallLinux :python3 -m pip install easydb-jsonWindows :python -m pip install easydb-jsonAuthorDiscord:Lactua#6319Github:https://github.com/lactuaDocumentationGet startedTo start, you have to create your database in your code by using theinitfunction.init (function)Theinitfunction return you a dict that you can edit and that will be saved in thepaththat you gave.ParameterTypeDescriptionpathstringThe path of the database fileExample :fromeasydbjsonimportinitmydb=init('NiceDir/NiceFile.json')Interact with the databaseWhen you edit the dict that is return from the init function, it automaticly edit the database file. So to interact with the database, interact with the dict.Example :fromeasydbjsonimportinitmydb=init('NiceDir/NiceFile.json')mydb['name']='Lactua'print(mydb['name'])mydb['name']='Luctau'print(mydb['name'])delmydb['name']Output :Lactua
Luctau
Package: easydeb
===========easy-deb===========FEATURES========* Packages python modules* from source distribution files* from urls* from PyPI records* can package it self* handles dependencies* intstalls modules into eggs (from setuptools)* can activate or deactivate an installed egg (add or remove from sys.path)* handles a database of dependencies========================easy_deb instructions========================SYNOPSIS========easy-deb:^^^^^^^^^^Type$ easy-deb -hfor usage and options synopsis:usage: easy-deb [options] (pypi-modulename | archive-file-name| url)options:-h, --help            show this help message and exit-v VERSIONS, --python-versions=VERSIONSComa separated list of python versions to package for.E.g.: -v 2.3,2.4-d DEPS, --debian-deps=DEPSStandard debian dependency string. %v is replaced withpython version-b BDEPS, --debian-build-deps=BDEPSStandard debian dependency string. %v is replaced withpython version-f FIND_LINKS, --find-links=FIND_LINKSAdditionnal links to scan-D DEST_DIR, --dest-dir=DEST_DIRDistribution downloaded into file-c, --common-dir      Install to commond dir from where tree linking is done-a, --arch-dep        Build arch dep packages-u, --update-databaseUpdate the database of python modules optionsupdate-pypi:^^^^^^^^^^^^^Type$ update-pypi -hfor usage and options synopsis:usage: update-pypi [options] (module-name | show | update)options:-h, --help    show this help message and exit-a, --add     Add egg to sys.path-r, --remove  Add egg to sys.pathUSAGE=====easy-deb: this tool will create a debian source package into adeb-pkg-<modulename> directory.To compile the source package use the standard debian tools (debuild or"fakeroot debian/rules binary")update-pypi: this script is used to enable and disable installed egg (you canenable/disable all eggsing the removing the All package). Enabled eggs are on sys.path, disabled eggsmust be pkg_resource.require() before you can import from them.EXAMPLE=======To install module "graph":$ easy-deb -v2.4 graph -D /tmp/$ cd /tmp/deb-pkg-graph0.4/graph-0.4$ fakeroot debian/rules binary$ sudo dpkg -i ../*.deb$ update-pypi -a graph
Package: easy-debug
easy-debugA library that help you to debug the code in terminalGetting startedInstallationUsagesCode exampleDocumentationInstallationpip install easy-debugGitHub :GithubUsagesAdd the @debug() before the function you want to try in the terminalCode examplefromeasy_debugimportdebug@debug()deftest1():do_action_here@debug()asyncdeftest1(arg1,arg2,*,arg3):do_action_hereThe debug lib works for sync and async function in terminal