Saravanan666/pypi-org huggingface dataset:
Package: pydentic
PydenticPydenticis a thin wrapper overpython-stdnumto facilitate the use
of its extensive collection of validators and formatters inPydanticmodels.pip install pydenticFeaturesAutomatic validation and formatting.frompydentic.stringsimportIbanfrompydanticimportBaseModelclassUser(BaseModel):name:striban:Ibanuser=User(name='John Doe',iban='es1000750080110600658108')print(user)#> name='John Doe' iban='ES10 0075 0080 1106 0065 8108'# note the extra last characteruser=User(name='John Doe',iban='es1000750080110600658108Ñ')# raises...pydantic.error_wrappers.ValidationError:1validationerrorforUseribanes1000750080110600658108Ñ(type=value_error.format;error=invalidliteralforint()withbase36:'Ñ')Title and description in the JSON Schema.{"title":"User","type":"object","properties":{"name":{"title":"Name","type":"string"},"iban":{"title":"IBAN","description":"International Bank Account Number","type":"string"}},"required":["user","iban"]}The classesIsan,Isbn, andIssninclude aurnproperty that, not
surprisingly, returns their URN.frompydentic.stringsimportIsbnfrompydanticimportBaseModelclassBook(BaseModel):author:strtitle:strisbn:Isbnbook=Book(author='D. Hofstadter',title='GEB',isbn='978-0-465-02656-2')print(book.isbn.urn)#> urn:isbn:9780465026562IdentifiersThe list below contains some available international identifiers. There are
around 200 more identifiers included (seethe python-stdnum docsfor the
complete list.)identifierspecdescriptionBICISO 9362Business Identifier CodeBIC-CodeISO 6346International standard for container identificationBitcoin addressCAS RNChemical Abstracts Service Registry NumberCUSIP numberfinancial security identification numberEANInternational Article NumberFIGIOMG FIGIFinancial Instrument Global IdentifierGRidGlobal Release IdentifierGS1-128GS-1 (product information) usingCode 128 barcodesIBANISO 13616International Bank Account NumberIMEIInternational Mobile Equipment IdentityIMO numberInternational Maritime Organization numberIMSIInternational Mobile Subscriber IdentityISANISO 15706International Standard Audiovisual NumberISBNISO 2108International Standard Book NumberISILISO 15511International Standard Identifier for LibrariesISINISO 6166International Securities Identification NumberISMNISO 10957International Standard Music Numberfor notated musicISSNISO 3297International Standard Serial NumberLEIISO 17442Legal Entity IdentifierMAC addressMedia Access Control addressMEIDMobile Equipment IdentifierISO 11649Structured Creditor Reference
Package: pydenticon
Pydenticon is a small utility library that can be used for deterministically
generating identicons based on the hash of provided data.The implementation is a port of the Sigil identicon implementation from:https://github.com/cupcake/sigil/Pydenticon provides a couple of extensions of its own when compared to the
original Sigil implementation, like:Ability to supply custom digest algorithms (allowing for larger identicons if
digest provides enough entropy).Ability to specify a rectangle for identicon size..
Package: pydentifier
Generates Python identifiers from English text. Useful for code generation.Class name:>>>pydentifier.upper_camel("I'm a class",prefix='')'IAmAClass'Function name:>>>pydentifier.lower_underscore('This is a function',prefix='')'this_is_a_function'Reserved keyword:>>>pydentifier.lower_underscore('class',prefix='')'class_'Internal method:>>>pydentifier.lower_underscore("Shouldn't touch this",prefix='_')'_should_not_touch_this'Private method:>>>pydentifier.lower_underscore("Can't touch this",prefix='__')'__cannot_touch_this'
Package: pydeogram
pydeogramGenerate karyotype pictures using Ideogram.js.💪 Getting Startedpydeogramhelps you make karyotype plots for your gene lists usingIdeogram.js.importpydeogramsymbols=["ARFGEF1","ARFGEF2","ARFGEF3"]pydeogram.to_html_path(symbols,path="~/Desktop/argef_ideogram.html")This also works in a Jupyter notebook. Note you need to run theprepare_jupyterandto_jupyterfunctions in succession. I'm looking
for a fix for this so it can be in a single function, but Javascript is
hard.Thepydeogramhas a CLI that can do the same thing:$pydeogramwriteARFGEF1ARFGEF2ARFGEF3-o~/Desktop/argef_ideogram.html🚀 InstallationThe most recent release can be installed fromPyPIwith:$pipinstallpydeogramThe most recent code and data can be installed directly from GitHub with:$pipinstallgit+https://github.com/cthoyt/pydeogram.git👐 ContributingContributions, whether filing an issue, making a pull request, or forking, are appreciated. SeeCONTRIBUTING.mdfor more information on getting involved.👋 Attribution⚖️ LicenseThe code in this package is licensed under the MIT License.🍪 CookiecutterThis package was created with@audreyfeldroy'scookiecutterpackage using@cthoyt'scookiecutter-snekpacktemplate.🛠️ For DevelopersSee developer instructionsThe final section of the README is for if you want to get involved by making a code contribution.Development InstallationTo install in development mode, use the following:$gitclonegit+https://github.com/cthoyt/pydeogram.git
$cdpydeogram
$pipinstall-e.🥼 TestingAfter cloning the repository and installingtoxwithpip install tox, the unit tests in thetests/folder can be
run reproducibly with:$toxAdditionally, these tests are automatically re-run with each commit in aGitHub Action.📖 Building the DocumentationThe documentation can be built locally using the following:$gitclonegit+https://github.com/cthoyt/pydeogram.git
$cdpydeogram
$tox-edocs
$opendocs/build/html/index.htmlThe documentation automatically installs the package as well as thedocsextra specified in thesetup.cfg.sphinxplugins
liketexextcan be added there. Additionally, they need to be added to theextensionslist indocs/source/conf.py.📦 Making a ReleaseAfter installing the package in development mode and installingtoxwithpip install tox, the commands for making a new release are contained within thefinishenvironment
intox.ini. Run the following from the shell:$tox-efinishThis script does the following:UsesBump2Versionto switch the version number in thesetup.cfg,src/pydeogram/version.py, anddocs/source/conf.pyto not have the-devsuffixPackages the code in both a tar archive and a wheel usingbuildUploads to PyPI usingtwine. Be sure to have a.pypircfile configured to avoid the need for manual input at this
stepPush to GitHub. You'll need to make a release going with the commit where the version was bumped.Bump the version to the next patch. If you made big changes and want to bump the version by minor, you can
usetox -e bumpversion minorafter.
Package: pydeohub
pydeohubPython interface for ethernet-connected Blackmagic Design Smart Videohub SDI routers.Installationpip install pydeohubDocumentationA full API reference and small walkthrough is available onRead the Docs.ExamplefrompydeohubimportVideohubhub=Videohub('192.168.0.150')hub.route(0,0)# Note that input/output identifiers are 0-indexed.hub.input_label(1,'Camera 2')hub.output_label(0,'Switcher 1')Additional InformationThis is a work in progress and while it implements the vast majority of the Videohub Ethernet Protocol, it does not do everything.  The infrastructure around locking inputs and oututs, video processors, and serial controllers is unimplemented.Questions, comments, and contributions are welcome.
Package: pydep-cli
PyDepCreatepyproject.toml&poetry.lockdependency files fromrequirements.txtInstallationpydepcan be installed in the following ways:Cloning the repositoryClone this repository to your local machinegit clone https://github.com/Devansh3712/PyDep.gitInstallpydepby runningsetup.pyinPyDepdirectoryWindowspython setup.py installLinuxpython3 setup.py installInstalling as a pip packageUsing terminal/cmd to installpydepWindowspip install pydep-cliLinuxpip3 install pydep-cliUsageUsage: pydep [OPTIONS] COMMAND [ARGS]...

  Create pyproject.toml & poetry.lock dependency files from requirements.txt

Options:
  --help  Show this message and exit.

Commands:
  convert     Create poetry.lock dependency file from requirements.txt
  dependency  Create requirements.txt file for the project, if virtual...
  pyproject   Create pyproject.toml file for the projectpydepcommandspydepcan be used by directly typingpydepin terminal/cmd of project directoryFor creatingpyproject.tomlfile, the commandpydep pyprojectis used, which initiates a new pyproject.toml fileUsage: pydep pyproject [OPTIONS]

  Create pyproject.toml file for the project

Options:
  --help  Show this message and exit.For creatingrequirements.txtfile for the project, the commandpydep dependencyis used, which creates a requirements.txt file if a virtual environment for the project is activatedUsage: pydep dependency [OPTIONS]

  Create requirements.txt file for the project, if virtual environment is
  activated

Options:
  --help  Show this message and exit.For creatingpoetry.lockdependency file fromrequirements.txt, the commandpydep convertis used, which adds all dependencies in requirements.txt to pyproject.toml and poetry.lock fileUsage: pydep convert [OPTIONS]

  Create poetry.lock dependency file from requirements.txt

Options:
  --help  Show this message and exit.
Package: pydependabot
pyDependabotThe unofficial but well maintained python library to interact with github's Dependabot api.
pydependabot allows developers to work with github's vulnerablity alerts without handling graphql or rest api, just by using python.installationPip is the easiest way to install pydependabot.python -m pip install pydependabotafter a short installation process the package will be avaiable for usage.
if you encounter any problem during installation, please open an issue and we will help.Usage examplesPlease note that in order to use the package the token you authenticate with must have security alerts permissions.To simply query your current Dependabot alerts list -importDependabotfrompydependabotd=Dependabot(graphql_endpoint="https://api.github.com/graphql",auth_token="TOKEN")dependabot_alerts=d.get_security_alerts(repository_owner='or-elias',repository_name='pyDependabot')print(dependabot_alerts)If you need to query different fields you can specify that on the get_security_alerts function call.
All of the possible fields are listed on the repository_vulnerablity_alert_query.py fileimportDependabotfrompydependabotfrompydependabot.repository_vulnerablity_alert_queryimportRepositoryVulnerablityAlertQueryd=Dependabot(graphql_endpoint="https://api.github.com/graphql",auth_token="TOKEN")dependabot_alerts=d.get_security_alerts(repository_owner='or-elias',repository_name='pyDependabot',fields=[RepositoryVulnerablityAlertQuery.dismissCommentField])print(dependabot_alerts)pydependabot uses a gql client to ineract with the graphql endpoint and it automatically selects RequestsHTTPTransport as the client's transport method.
if needed, you can manully overwrite that and provide your own gql client for the library to use, you can do that by using the options argument.importDependabotfrompydependabotclient=ADifferentGQLClient()dependabot_alerts=Dependabot("https://api.github.com/graphql","TOKEN",options={'client':client}).get_security_alerts('fake-org','fake-repo')print(dependabot_alerts)
Package: pydependance
🕵️ pydependance 🐍Python local package dependency discovery and resolutionContributionsare welcome!Table Of ContentsOverviewWhyHow This WorksInstallUsageOverviewIf multiple dependencies are listed in a project, only some of them may actually be required!
This project finds those dependencies!WhyThis project was created for multiple reasonsFind missing dependenciesGenerate optional dependencies lists, eg. for pyproject.tomlCreate minimal dockerfiles with only the dependencies that are needed for
a specific entrypointHow This WorksSpecify root python packages to search through (we call this thenamespace)This can either be modules under a folder, similar to PYTHONPATHOr actual paths to modulesThe AST of each python file is parsed, and import statements are foundFinally, dependencies are resolved using breadth-first-search and flattened.imports that redirect to modules within the current namespace
are flattened and replaced with imports not in the namespace.Installpydependancecurrently requirespython==3.10, however,
it can still be run in a virtual environment over legacy python codepipinstallpydependanceUsagepython-mpydependance--help
Package: pydependencygrapher
Draws dependency graphs from a modified CONLL inputUsage examplecat example.conll | ./pydependencygrapher.pyInput example#example
Sentence: Foi Darwin ou foi a evolução?
1   Foi     SER,IR  V       V       ppi-3s  0       ROOT    _       _
2   Darwin  Darwin  PNM     PNM     _       1       PRD-ARG2        _       _
3   ou      OU      CJ      CJ      _       4       CONJ    _       _
4   foi     SER,IR  V       V       ppi-3s  1       COORD   _       _
5   a       A       DA      DA      fs      6       SP      _       _
6   evolução        EVOLUÇÃO        CN      CN      fs      4       PRD-ARG2        _       _
7   ?       ?       PNT     PNT     _       1       PUNCT   _       _Output example
Package: pydep-extractor
pydep_extractorHow to Use pydep_extractorThis script extracts the dependencies from thepyproject.tomlfile and writes them to arequirements.txtfile.Therequirements.txtfile is used by the Dockerfile to install the dependencies before installing the application. This is done to speed up the build process and improve caching.Installationpipinstallpydep_extractorUsageTo process a specificpyproject.tomlfile and create arequirements.txtfile:python -m pydep_extractor path/to/pyproject.tomlTo install the dependency without creating arequirements.txtfile:python -m pydep_extractor path/to/pyproject.toml --installTo set a non-default pip command:python -m pydep_extractor path/to/pyproject.toml --pip-command pip3To ignore specific requirements:python -m pydep_extractor path/to/pyproject.toml --ignore string1 string2To specify a different output file for the dependencies:python -m pydep_extractor path/to/pyproject.toml --output path/to/requirements.txtTo specify a different output file for the pyproject if using the ignore dependency options:python -m pydep_extractor path/to/pyproject.toml --pyproject-output path/to/pyproject_filtered.toml
Package: pydepict
A library and accompanying program for parsing SMILES (simplified molecular-input line-entry system) strings and generating 2D depictions of chemical structures from these strings.It was originally developed as part of a 3rd year computer science dissertation project.Prerequisitespydepict requiresPython 3.7 or newer, and uses the following packages:pygameNetworkXSpecific versions of these libraries can be found inrequirements.txt.SetupThe recommended method of installation is viapip, which installs pydepict as a package:python3-mpipinstallpydepictUsepy-3instead ofpython3if you are on Windows.Usingpipinstalls the latest release of pydepict. Alternatively, if you want the latest development version, then you can clone the repository from GitHub:gitclonehttps://github.com/WilliamWFLee/pydepictcdpydepictIf you want to run the program straight from the cloned repository then you must install pydepict’s package requirements usingpip:python3-mpipinstall-rrequirements.txtOr to install the development version as a package:python3-mpipinstall.UsageIf you have installed pydepict as a package, then you can run the program by simply running:pydepictOr you can invoke the module as a program:python3-mpydepictIf you want to run the program straight from the cloned repository, then you can execute the scriptsrc/main.py:python3src/main.pyExecuting the program without any command-line arguments opens a GUI allowing SMILES string input. Passing a SMILES string as the first command-line argument only displays the renderer window showing only the corresponding diagram. For example:python3src/main.pyCCOparses the SMILES stringCCOand displays the corresponding diagram.Minimal Code Examplefrompydepictimportdepict,parse,rendergraph,_=parse(input("Enter your SMILES string: "))positions=depict(graph)render(graph,positions)LicenseThis library is licensed under the MIT Licence. SeeLICENSEfor license and copyright details. Code files will also include a header explicitly stating that the license and copyright applies.NetworkX is licensed under the 3-clause BSD license, while pygame is licensed under the GNU Lesser General Public License (LGPL). SeeLICENSE.networkxandLICENSE.pygamerespectively for details.
Package: pydeplist
pydeplistDescriptionThis is a command line tool to list all remote GitHub dependencies for a python package.The dependencies will stop be listed until we have no access to the repoORthere is no more dependency is needed.NOTICE:Now, this is only used for show dependencies which are in GitHub. But in the future, I'll try to extend it to packages in Pypi.Installation# cd pydeplistpip3install.Usagecd[packagefolder]pydeplist--user[usernameforGitHub]--passwd[password]# orpydeplist--dir[packagefolder]--user[usernameforGitHub]--passwd[password]Example Output-setup-mcubn-upctl-aclient-testassis-kball-timeutil-pve-func-math-aclient-cpylua-mcubn-upctl-pve-func-mathThe dependency tree node ends atfuncandmath, because we have no access forfuncandmath, so we cannot go on. And it ens atmcubnbecause it does not depend in another GitHub repo.
Package: py-deploy
Python application deployerThis command line script exists for fast deployment to remote server.
Was mostly created for test purposes and might have some issues.Used languages/packagesPython3.6,click,paramikoandscp.Installation and usageTo install simply runpip install py_deployYou can also install it from git:pip install git+https://github.com/velykanov/py_deploy.gitTo deploy your application to the server simply runpy-deploy -t /some/dir/ -h remote_host.
This command would deploy current directory to remote server.Here's the full list of options:-i,--identity-fileTEXTSSHidentityfile
-p,--passwordDefinesifpasswordmustbepassed
-P,--portTEXTSSHtargetport
-s,--sourceTEXTSource(default:'.')-t,--targetTEXTTarget[required]-h,--hostTEXTHostIPaddressorname[required]-u,--usernameTEXTRemoteusername
-e,--excludeTEXTDirsnamestoexclude(default:['tests','.git','__pycache__'])-v,--verbose
--versionShowtheversionandexit.
--helpShowthismessageandexit.Please note!This tool won't work if your python versions are mismatched
(for instance your app is written using Python3.8 including
some specific features and you're running this tool using Python3.6).ChangelogVersionChanges1.0.1Added ssh password support. Split target into separate arguments.
Package: py-deployer
Py DeployerPy Deployer is a lightweight package to execute zero-downtime deployment onLinux servers.pydeploy-sprod✨ FeaturesCross-technology deploymentsSimple configurationZero downtime deploymentsMultiple environment managementRelease version managementUse SSH protocol⚠ This package does not currently support after-deployment scripts1️⃣ Installationsudopip3installpy-deployer2️⃣ ConfigurationCreate the filedeploy/config.yamlinside your project as following:# Example of file: ./deploy/config.yamldeploy:# Shared files and folders (between releases)shared:[.env]# All available servers (SSH configuration)servers:dev:hostname:'10.56.12.0'port:22user:'dev_username'password:~# Ignore that if you use SSH keysdeploy_path:'/server/application/path'stage:'develop'branch:'dev'identity_file:~# Ignore that if it stay in the default folder (~/.ssh)repository:~# Ignore that if you run pydeploy from a git project directorymax_releases:3# ...prod:hostname:'10.56.11.0'port:22user:'prod_username'password:~# Ignore that if you use SSH keysdeploy_path:'/server/application/path'stage:'production'branch:'master'identity_file:~# Ignore that if it stay in the default folder (~/.ssh)repository:~# Ignore that if you run pydeploy from a git project directorymax_releases:33️⃣ DeploymentDeploy your application by running:pydeploy-s<dev|stag|prod|...>LinksPyPi
Package: pydeployment
PyDeploymentPyDeployment provides an easy way to package Python projects on Windows, macOS,
and Linux. This project is a wrapper that leverages existing software to take
your project from repository to executable file. If you can run it with Python,
you can ship it with PyDeployment.How PyDeployment WorksPyDeployment usesPyInstallerto
create an application directory. This created directory is then bundled into
the preferred distribution method for the platform.On Windows,NSISis used to create an
installer (EXE).On macOS, the hdiutil command is used to create an Apple disk image (DMG).On Linux,appimagetoolis used to
create an AppImage.Installing PyDeploymentInstall PyDeployment with pip using the following command.pip install --user pydeploymentQuick StartAfter installing PyDeployment, use thepydeploycommand and either a Python
script or a PyInstallerspec fileas the target.pydeploy myapp.pyDocumentationDocumentation for using PyDeployment can be found on the projectwebsite.ExamplesThe following examples showcase build systems which utilize PyDeployment to build
their applications. These examples are themselves template repositories
available for use.Hello World TkHello World GTKHello World Qt
Package: pydepman
A modern dependency manager for Python.usagepy [SCRIPT]Run python in the virtual environment specified in py.toml. If there is no py.toml file or it does specify a virtual environment, run with the shell’s python executable.
This command makes explicitly activating the virtual environment obsolete.py search PACKAGESearch for packages in the Cheese Shop.py show PACKAGEShow the details of a package. It does not matter whether the package is installed locally.py deps PACKAGEShow the dependency tree of a package. It does not matter whether the package is installed locally.py syncInstall and uninstall packages as needed to match those specified in the py.toml file.py install PACKAGEInstall a package, optionally with a version specified (e.g. django==3.0.8). The package is installed in the virtual environment specified in the py.toml file.py upgrade PACKAGEUpgrade a package, preferably with a version specified. By default the package dependencies are also upgraded as necessary.py uninstall PACKAGERemove a package from the virtual environment specified in the py.toml file.licenceGPL. You can do what you want with this code as long as you let others do the same.
Package: pydepot
Strongly-typed, scalable state container for Python.DocumentationSimple example# main.pyfromtypingimportNamedTupleimportpydepotclassState(NamedTuple):counter:intclassAddToCounterAction(pydepot.Action):def__init__(self,value:int):self.value:int=valueclassAddToCounterReducer(pydepot.Reducer[AddToCounterAction,State]):@propertydefaction_type(self)->type[AddToCounterAction]:returnAddToCounterActiondefapply(self,action:AddToCounterAction,state:State)->State:returnState(counter=state.counter+action.value)classCounterSubscriber(pydepot.StoreSubscriber[State]):defon_state(self,state:State)->None:print(f"The counter has changed to{state.counter}.")defmain()->None:store=pydepot.Store(initial_state=State(counter=0))store.register(AddToCounterReducer())subscriber=CounterSubscriber()store.subscribe(subscriber)store.dispatch(AddToCounterAction(value=42))if__name__=="__main__":main()$python3main.py

Thecounterhaschangedto42!InstallationPydepot is available aspydepoton PyPI:pipinstallpydepotUsageFor detailed quickstart and API reference, visit theDocumentationLicenseCopyright (C) 2023 tombartk 

This program is free software: you can redistribute it and/or modify it under the terms
of the GNU Affero General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program.
If not, see https://www.gnu.org/licenses/.