Saravanan666/pypi-org huggingface dataset:
Package: argo-models
argo-modelsargo-modelsis aargonamespaced package with theargo.modelssubpackage
which contains the generated OpenAPI models fromArgo.Documentations can be found athttps://argo-models.readthedocs.io/en/latest/pipinstallargo-modelsfromargo.modelsimportV1alpha1ArtifactLocation,V1alpha1S3Artifactfromkubernetes.client.modelsimportV1SecretKeySelector# create aws credaccess_key_secret=V1SecretKeySelector(name="s3_secret",key="accesskey")secret_key_secret=V1SecretKeySelector(name="s3_secret",key="secretkey")# create artifact config for s3s3_artifact=V1alpha1S3Artifact(bucket="foobar",endpoint="s3.amazonaws.com"insecure=False,access_key_secret=access_key_secret,secret_key_secret=secret_key_secret,key="")# create artifact locationartifact_location=V1alpha1ArtifactLocation(s3=s3_artifact)Developer notesTo generate the latest models, updateversion.txtwith the desired argo release
(e.g.2.3.0-rc3) and then run./generate-api.sh.To release new version to pypi, create a release with the corresponding version tag (e.g.v2.2.1). Travis will automatically publish the package.NOTE:version.txtshould hold the current/latest argo version to be generated, as it
is also used bysetup.pyas theargo-modelspackage version.Please install@openapitools/openapi-generator-clito
generate the openapi specs.LicenseThis package is licensed underApache-2.0and is a derivative of theArgo projectusingOpenAPI generator.
Package: argon2
Python bindings for argon2 :https://github.com/P-H-C/phc-winner-argon2Installation:
You can install argon2_py from this repository if you want the latest but possibly non-compiling version:$ git clone –recursivehttps://github.com/flamewow/argon2_py$ cd argon2_py$ python setup.py buildActivate virtualenv (or use sudo):$ python setup.py installOr you can install the latest release from PYPI:$ pip install argon2>>> argon2.argon2_hash.__doc__
    This is argon2 hashing function
t - time cost, which defines the amount of computation realized and therefore the execution time, given in number of iterations
m - memory cost, which defines the memory usage, given in kibibytes
p - parallelism degree, which defines the number of parallel threadsExamples:>>> import argon2
>>> argon2.argon2_hash("password", "some_salt", )
b'\xa8&x\xc7\xd9\xc4\x1f\xdf[2\xd9hq\xab\xe5\xb4WV\x89\xca\xa4\xee\xb3\x98\xf1I\xd1\xdaf\xe7=\xfaA\x04\xeb\xe1\xfd\x94)\xad\x84\r\x9ed<8xE\xc3\xd3\xfb\x13\xcbN\xcf\\}\xfd-9\x8b\x07@\xd8\x10\x1a\x83\x05\xd5\xfd\xc4m\x9f\xd7\x81\xdcX\x87\xb2\x02\xa9R\xc1\x9d\xaf6\xbb\x8c\xe1vH+\x07\xc7Y\x80\xb3\xb5\xf8\xba\xbd\x87\xd8\xf5\xea\x1a\x04V&\xf7\xde\x9b\x93\x8dbQ\x91e\xf6\xd6\xa2\xd8G8\xe3\x9a\x03\xf3'
_________________________________________________________________________________________________
>>> import argon2
>>> argon2.argon2_hash(password="some password", salt="some salt", t=16, m=8, p=1, buflen=128, argon_type=argon2.Argon2Type.Argon2_i)
b"\x1f>\xe0\xb8\x88%\xef\xee\xb3n\\\xb85\x03\x14\xb8\xb8O\x02Zk\xbf<\xd5\xa0C\xf2,p\x00\xda\xd7Bc\xa71\x84\x10\x00\x8cx'\xec?Q\x8499\x9b\xd4)\xf1\x98F\x13!\x8bB\x12!\xc3U\x8d\x9a\xb5\x10\x8cIo\xd2p\xcd'\x8c\x96d\xa5?{\x1d*\xaf\xab\x99\x9e\xe9c\xa4\xb7\xb2\x00\xfa\x82\x96/\xdei_1Nun\x92j\n\xf3D#\x05\tj\xa2\x92\xd5\xf4nym\xd1Kq\xa1|\xd19\xa9Q8"
Package: argon2-cffi
argon2-cffi: Argon2 for PythonArgon2won thePassword Hashing Competitionandargon2-cffiis the simplest way to use it in Python:>>>fromargon2importPasswordHasher>>>ph=PasswordHasher()>>>hash=ph.hash("correct horse battery staple")>>>hash# doctest: +SKIP'$argon2id$v=19$m=65536,t=3,p=4$MIIRqgvgQbgj220jfp0MPA$YfwJSVjtjSU0zzV/P3S9nnQ/USre2wvJMjfCIjrTQbg'>>>ph.verify(hash,"correct horse battery staple")True>>>ph.check_needs_rehash(hash)False>>>ph.verify(hash,"Tr0ub4dor&3")Traceback (most recent call last):...argon2.exceptions.VerifyMismatchError:The password does not match the supplied hashProject LinksPyPIGitHubDocumentationChangelogFundingThe low-level Argon2 CFFI bindings are maintained in the separateargon2-cffi-bindingsproject.Release InformationRemovedPython 3.6 is not supported anymore.DeprecatedTheInvalidHashexception is deprecated in favor ofInvalidHashError.
No plans for removal currently exist and the names can (but shouldn't) be used interchangeably.argon2.hash_password(),argon2.hash_password_raw(), andargon2.verify_password()that have been soft-deprecated since 2016 are now hard-deprecated.
They now raiseDeprecationWarnings and will be removed in 2024.AddedOfficial support for Python 3.11 and 3.12.
No code changes were necessary.argon2.exceptions.InvalidHashErroras a replacement forInvalidHash.saltparameter toargon2.PasswordHasher.hash()to allow for custom salts.
This is only useful for specialized use-cases -- leave it on None unless you know exactly what you are doing.#153→ Full ChangelogCreditsargon2-cffiis maintained byHynek Schlawack.The development is kindly supported by my employerVariomedia AG,argon2-cffiTidelift subscribers, and my amazingGitHub Sponsors.argon2-cffifor EnterpriseAvailable as part of the Tidelift Subscription.The maintainers ofargon2-cffiand thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open-source packages you use to build your applications.
Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.Learn more.
Package: argon2-cffi-bindings
Low-level Python CFFI Bindings for Argon2argon2-cffi-bindingsprovides low-levelCFFIbindings to theArgon2password hashing algorithm including a vendored version of them.The currently vendoredArgon2commit ID isf57e61e.If you want to hash passwords in an application, this package isnotfor you.
Have a look atargon2-cffiwith its high-level abstractions!These bindings have been extracted fromargon2-cffiand it remains its main consumer.
However, they may be used by other packages that want to use theArgon2library without dealing with C-related complexities.Usageargon2-cffi-bindingsis available fromPyPI.
The providedCFFIbindings are compiled in API mode.Best effort is given to provide binary wheels for as many platforms as possible.Disabling Vendored CodeA copy ofArgon2is vendored and used by default, but can be disabled ifargon2-cffi-bindingsis installed using:$envARGON2_CFFI_USE_SYSTEM=1\python-mpipinstall--no-binary=argon2-cffi-bindingsargon2-cffi-bindingsOverriding AutomaticSSE2DetectionUsually the build process tries to guess whether or not it should useSSE2-optimized code (see_ffi_build.pyfor details).
This can go wrong and is problematic for cross-compiling.Therefore you can use theARGON2_CFFI_USE_SSE2environment variable to control the process:If you set it to1,argon2-cffi-bindingswill buildwithSSE2 support.If you set it to0,argon2-cffi-bindingswill buildwithoutSSE2 support.If you set it to anything else, it will be ignored andargon2-cffi-bindingswill try to guess.However, if our heuristics fail you, we would welcome a bug report.Python APISince this package is intended to be an implementation detail, it uses a private module name to prevent your users from using it by accident.Therefore you have to import the symbols from_argon2_cffi_bindings:from_argon2_cffi_bindingsimportffi,libPlease refer tocffidocumentationon how to use theffiandlibobjects.The list of symbols that are provided can be found in the_ffi_build.pyfile.Project Informationargon2-cffi-bindingsis available under the MIT license, available fromPyPI, the source code and documentation can be found onGitHub.argon2-cffi-bindingstargets Python 3.6 and later, including PyPy3.Credits & Licenseargon2-cffi-bindingsis written and maintained byHynek Schlawack.
It is released under theMIT license.The development is kindly supported byVariomedia AG.The authors ofArgon2were very helpful to get the library to compile on ancient versions of Visual Studio for ancient versions of Python.The documentation quotes frequently in verbatim from theArgon2paperto avoid mistakes by rephrasing.Vendored CodeThe originalArgon2repo can be found athttps://github.com/P-H-C/phc-winner-argon2/.Except for the components listed below, theArgon2code in this repository is copyright (c) 2015 Daniel Dinu, Dmitry Khovratovich (main authors), Jean-Philippe Aumasson and Samuel Neves, and underCC0license.The string encoding routines in src/encoding.c are copyright (c) 2015 Thomas Pornin, and underCC0license.TheBLAKE2code insrc/blake2/is copyright (c) Samuel Neves, 2013-2015, and underCC0license.
Package: argon2pure
argon2purePure Python implementation ofArgon2v1.3.You probably want to use theargon2_cffiorpyargon2bindings instead.Usage>>>importargon2pure>>>frombinasciiimporthexlify>>>hexlify(argon2pure.argon2('password','randomsalt',time_cost=1,memory_cost=16,parallelism=2))'0163c5fa892819055eb07b8acb94fd2ff5273e689b34107daaaaceda648f1e1b'InstallationRun:pip install argon2pureTODOOptimize.Cover corner-cases in tests.argon2pure Changelog1.3 (2016-12-27)Support ARGON2ID.Add ARGON2_TYPES constant.Python 3.6 support.1.2.4 (2016-06-25)Close worker pool explicitly.  For CPython this makes no difference, but
for a Python implementation without reference counting, like PyPy, this
will drastically decrease memory usage.  (Eli Collins)1.2.3 (2016-06-23)Add use_threads flag to use threads instead of processes.  (Eli Collins)1.2.2 (2016-06-18)Add ARGON2_VERSIONS constant.  (Eli Collins)1.2 (2016-06-17)Support and switch the default to Argon2 v1.31.1.1 (2016-06-17)Fix setup.py typo.  (Fixes #1)Thanks to: Eli Collins1.1 (2016-02-06)Performance improvements.Faster XORing of blocks.Use multiple threads if possible.1 (2016-01-21)Initial release.
Package: argoptions
see tornado.options>>>fromargoptionsimportoptions>>>options.define('appname',default='',type=str,help='the app name')>>>options.define('flag',default='',type=str,help='load config file by this specified flag')>>>options.define('port',default=65535,type=int,help='run server on this specified port')>>>options.parse_command_line()>>>>>>>>>>>>fromargoptionsimportoptions>>>port=options.options.port>>>print(port)
Package: argopy
argopyis a python library dedicated to Argo data access, visualisation and manipulation for regular users as well as Argo experts and operatorsDocumentationThe official documentation is hosted on ReadTheDocs.org:https://argopy.readthedocs.ioInstallBinary installers for the latest released version are available at thePython Package Index (PyPI)and onConda.# condacondainstall-cconda-forgeargopy# or PyPIpipinstallargopyargopyis continuously tested to work under most OS (Linux, Mac, Windows) and with python versions >= 3.8Usage# Import the main data fetcher:fromargopyimportDataFetcherasArgoDataFetcher# Define what you want to fetch...# a region:ArgoSet=ArgoDataFetcher().region([-85,-45,10.,20.,0,10.])# floats:ArgoSet=ArgoDataFetcher().float([6902746,6902747,6902757,6902766])# or specific profiles:ArgoSet=ArgoDataFetcher().profile(6902746,34)# then fetch and get data as xarray datasets:ds=ArgoSet.load().data# ords=ArgoSet.to_xarray()# you can even plot some information:ArgoSet.plot('trajectory')They are many more usages and fine-tuning to allow you to access and manipulate Argo data:filters at fetch time(standard vs expert users, automatically select QC flags or data mode, ...)select data sources(erddap, ftp, local, argovis, ...)manipulate data(points, profiles, interpolations, binning, ...)visualisation(trajectories, topography, histograms, ...)tools for Quality Control(OWC, figures, ...)access meta-data and other Argo-related datasets(index, reference tables, deployment plans, topography, ...)improve performances(caching, parallel data fetching)Just check outthe documentation for more!Development and contributionsSee our development roadmap here:https://github.com/euroargodev/argopy/milestone/3Checkoutthe contribution pageif you want to get involved and help maintain or developargopy.
Package: argosge
Argos Panoptes data inspector.Requires: PyQtGraph (http://www.pyqtgraph.org/).For more info, see:https://github.com/soriaser/argosHistory0.2.1 (2017-01-12)Fix: in PyQt 5.7 the slot decorator wouldn’t connect anymore if the class didn’t derive
from QObject.0.2.0 (2017-01-01)First usable release.0.1.0 (2014-11-01)First release on PyPI.
Package: argos-translate-files
Argos Translate FilesTranslate files usingArgos Translate.Supported file format.txt, .odt, .odp, .docx, .pptx, .epub, .htmlInstallpip install argos-translate-filesExampleimportos.pathimportargostranslate.package,argostranslate.translateimportargostranslatefilesfromargostranslatefilesimportargostranslatefilesfrom_code="fr"to_code="en"installed_languages=argostranslate.translate.get_installed_languages()from_lang=list(filter(lambdax:x.code==from_code,installed_languages))[0]to_lang=list(filter(lambdax:x.code==to_code,installed_languages))[0]underlying_translation=from_lang.get_translation(to_lang)argostranslatefiles.translate_file(underlying_translation,os.path.abspath('path/to/file.txt'))
Package: argostranslategui
Argos Translate GUIWebsite|GitHub|PyPIGraphical user interface forArgos Translate.Installpip3 install argostranslateguiSnapcraftBuild and install snap packageInstallsnapdif it isn't already installed.Using snapd install snapcraft and its dependency multipass:sudo snap install multipass
sudo snap install --classic snapcraftClone this repo:git clone https://github.com/argosopentech/argos-translate-gui.gitFrom the root directory of this project build the snap package:cd argos-translate-gui
SNAPCRAFT_BUILD_ENVIRONMENT_MEMORY=4G snapcraftAnyunzippedpackage files in package/ will be automatically included in the snap archive (and won't be able to be deleted by users of the snap).Note, the build won't run with Snapcraft's default build memory of 2GB so you need to set the SNAPCRAFT_BUILD_ENVIRONMENT environment variable.More on Snapcraft forum.Install the snap package:sudo snap install --devmode argos-translate_<version information>.snapInstall from Snap StoreSnap store installcurrently unavailablebut snap build and install can still be done manually.Argos Translate is available from the Snap Store and auto installs a content snap to support translation between Arabic, Chinese, English, French, Russian, and Spanish. Additional languages can be installed from supplementary content snaps.Withsnapd installed:sudo snap install argos-translateAutomatically installs and connects toargos-translate-base-langssnap to support translations between Arabic, Chinese, English, French, Russian, and Spanish.Additional languages can be installed from *.argosmodel files or from supplementary content snaps:argos-translate-de-en - German - Englishargos-translate-en-it - English - Italianargos-translate-en-pt - English - PortugueseTo connect automatically:sudo snap connect argos-translate:argos-packages argos-translate-en-it:argos-packagesTo run command line interface on Snapcraft:argos-translate.cli --helpUninstall SnapThe following command will uninstall the snap package.sudosnapremoveargos-translateargos-translate-base-langsIf you installed additional language packs, you might want to remove them as well, e.g.sudosnapremoveargos-translate-de-en
Package: argovisHelpers
Build and releaseReview metadata inpyproject.toml; while determining if code is release worthy, append an rc tag to the semantic version, likemajor.minor.patch.rcxxBuild a release (image is built off ofDockerfile-build-env):docker container run -v $(pwd):/src argovis/argovis_helpers:build-240118 python -m buildPush to testPypi (notice you'll need a filepypircwith appropriate API tokens for the pypi servers):docker container run -v $(pwd):/src -v $(pwd)/pypirc:/root/.pypirc -it argovis/argovis_helpers:build-240118 twine upload -r testpypi dist/<your new rc>Test install and try:python -m pip install -i https://test.pypi.org/simple argovis_helpersIf all is well, rebuild without the rc tag and push to pypi:docker container run -v $(pwd):/src -v $(pwd)/pypirc:/root/.pypirc -it argovis/argovis_helpers:build-240118 twine upload dist/<your new release>git addyour new build artifacts under/distPush to github and mint a release matching the version number inpyproject.toml.
Package: argo-workflows-fvdnabee
Argo Workflows ClientPython client for Argo WorkflowsInstallationpipinstallargo-workflowsUsageIf you're familiar with Kubernetes client, the Argo client follows the same behaviour.fromargo.workflows.clientimportV1alpha1Apifromargo.workflows.configimportload_kube_configload_kube_config()# loads local configuration from ~/.kube/configAnd to list Workflows from a namespace (sayargo):v1alpha1=V1alpha1Api()wfs=v1alpha1.list_namespaced_workflows(namespace="argo")To submit aWorkflow, one would simply load it from a YAML*and submit it as such:importrequestsimportyamlnamespace="argo"# hello-world exampleresp=requests.get("https://raw.githubusercontent.com/argoproj/argo/master/examples/hello-world.yaml")resp.raise_for_status()manifest:dict=yaml.safe_load(resp.text)# Submit the Workflow to the `argo` namespacev1alpha1.create_namespaced_workflow(namespace,manifest)*When working on a higher level of abstraction, check out theArgo Python DSLVersioningThe client is generated from the Argo and Kubernetes OpenAPI specification.We follow semantic versioning, the client starts at version1.0which matches Argo release2.3.0and continues onwards.Compatibility matrixArgo 2.3Argo 2.4Argo 2.5client-python 1.0✓--client-python 2.0+✓-client-python 3.0++✓Key:✓Exactly the same features / API objects in both client-python and the Kubernetes
version.+client-python has features or api objects that may not be present in the
Kubernetes cluster, but everything they have in common will work.-The Kubernetes cluster has features the client-python library can't use
(additional API objects, etc).We try to be consistent with Argo as much as possible and hence we created special branches for user convenience --- for exampleargo/v2.4.0is identical with Argo releasev2.4.0.These can be then installed directly from github:pip install -e "git+git://github.com/CermakM/argo-client-python@argo/v2.4.0#egg=argo-workflows":warning: The compatibility for such cases is not guaranteedCode generationIf you wish to generate code yourself, you can do so by runningmake generatewith theARGO_VERSIONenvironment variable being set to the you want to generate the client for.Beforein the Makefile:make sure to select a compatibleKUBERNETES_BRANCHaccording to Argo'sGopkg.tomlmake sure to select a compatible version ofkubernetes-clientupdaterequirements.txtandPipfileFor additional configuration check out theMakefile.
Package: arg-package
arg.py
Version 0.0.1Https://GitHub.com/techeditorsrc/argThis module for managing application arguments or custom arguments from string.Output is dictionary:self.arg_list={
"args":[],
"options":[]
}Items from list "args" is dictionary:
{
"type":"item type",
"src":"source data",
"value":"parsed data"
}Items from list "options" is string values what begin from "-" characterItem types can be:
"option": where string begin from "-" character
"list": where string converted to an array
"data": where not matched as an "option" or a "list"Parsing parameters is dictionary with keys:
"case_sensetive" for values with type "option"
"list" for values with other type from "option" can be converted to an array
"list_by" is default character for conversion "value" to an array
"args" is string with custom arguments, it will select for parsing if not empty
Package: argpar
A simple argument parser.Usageimportargparimportcopyimportsysopts={"o":None,"g":"foo","w":None}flags=["t","u"]posarg={"path":"/home"}argpar.parse(opts,copy.copy(sys.argv),flags,posarg)Vaules inoptsandposargdictionaries are default values.Will automaticaly print help message if ahflag is found and exit.We recomend copyingsys.argv, as arguments get removed during
parsing.
Package: argparge
ArgpargeA very simple tool to create beautiful console application by using native argparse.ProjectCommanderAuthorÖzcan YarımdünyaDocumentationhttps://ozcanyarimdunya.github.io/argparge/Source codehttps://github.com/ozcanyarimdunya/argparge/argpargeis a library that you can create beautiful class based cli application.InstallationWorks onpython3+with no extra dependencies.pipinstallargpargeUsageexample.pyfromargpargeimportApplicationfromargpargeimportCommandclassGreetCommand(Command):name="greet"help="Greeting a person"defadd_arguments(self,parser:"Command"):parser.add_argument("name",help="Person name")defhandle(self,**arguments):print("Greeting, ",arguments.get("name"))if__name__=='__main__':app=Application(description="A simple argparge application")app.add_argument("-V","--version",action="version",version="1.0.0")app.add_commands(GreetCommand(),)app.run()If we run we get such output.For more checkouttutorials.LICENSEMIT License

Copyright (c) 2023 yarimdunya.com

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: argparse
The argparse module makes it easy to write user friendly command line
interfaces.The program defines what arguments it requires, and argparse will figure out
how to parse those out of sys.argv. The argparse module also automatically
generates help and usage messages and issues errors when users give the
program invalid arguments.As of Python >= 2.7 and >= 3.2, the argparse module is maintained within the
Python standard library. For users who still need to support Python < 2.7 or
< 3.2, it is also provided as a separate package, which tries to stay
compatible with the module in the standard library, but also supports older
Python versions.Also, we can fix bugs here for users who are stuck on some non-current python
version, like e.g. 3.2.3 (which has bugs that were fixed in a later 3.2.x
release).argparse is licensed under the Python license, for details see LICENSE.txt.Compatibilityargparse should work on Python >= 2.3, it was tested on:2.3, 2.4, 2.5, 2.6 and 2.73.1, 3.2, 3.3, 3.4InstallationTry one of these:python setup.py installeasy_install argparsepip install argparseputting argparse.py in some directory listed in sys.path should also workBugsIf you find a bug in argparse (pypi), please try to reproduce it with latest
python 2.7 and 3.4 (and use argparse from stdlib).If it happens there also, please file a bug in the python.org issue tracker.
If it does not happen there, file a bug in the argparse package issue tracker.
Package: argparse2typer
argparse2typerUse caseDo you ever need to work on an open source project and find that they use argparse? Nothing's wrong with argparse but you have already been falling in love withtyperCLI (you all will someday)?Fear no more, just useargparse2typerand all the argparse code would be parsed intotyperCLI with as little changes as possible.InstallationWith pip:pip install argparse2typerUsageLocate the lineargs = parser.parse_args()in the original scriptImport the functionfrom argparse2typer import argparse2typerRun the function beforeparse_args:argparse2typer(parser=parser, output_path=Path(<path>)) # <- new line
args = parser.parse_args()New file @ will be created with the typer CLI format!