Saravanan666/pypi-org huggingface dataset:
Package: python-dynamodb-lock
Python DynamoDB LockThis is a general purpose distributed locking library built on top of DynamoDB. It is heavily
“inspired” by the java-basedAmazonDynamoDBLockClientlibrary, and supports both coarse-grained and fine-grained locking.Free software: Apache Software License 2.0Documentation:https://python-dynamodb-lock.readthedocs.ioSource Code:https://github.com/mohankishore/python_dynamodb_lockFeaturesAcquire named locks - with configurable retry semanticsPeriodic heartbeat/update for the locks to keep them aliveAuto-release the locks if there is no heartbeat for a configurable lease-durationNotify an app-callback function if the lock is stolen, or gets too close to lease expiryStore arbitrary application data along with the locksUses monotonically increasing clock to avoid issues due to clock skew and/or DST etc.Auto-delete the database entries after a configurable expiry-periodConsistency NotesNote that while the lock itself can offer fairly strong consistency guarantees, it does NOT
participate in any kind of distributed transaction.For example, you may wish to acquire a lock for some customer-id “xyz”, and then make some changes
to the corresponding database entry for this customer-id, and then release the lock - thereby
guaranteeing that only one process changes any given customer-id at a time.While the happy path looks okay, consider a case where the application changes take a long time,
and some errors/gc-pauses prevent the heartbeat from updating the lock. Then, some other client
can assume the lock to be abandoned, and start processing the same customer in parallel. The original
lock-client will recognize that its lock has been “stolen” and will let the app know through a callback
event, but the app may have already committed its changes to the database. This can only be solved by
having the application changes and the lock-release be part of a single distributed transaction - which,
as indicated earlier, is NOT supported.That said, in most cases, where the heartbeat is not expected to get delayed beyond the lock’s lease
duration, the implementation should work just fine.Refer to an excellent post by Martin Kleppmann on this subject:https://martin.kleppmann.com/2016/02/08/how-to-do-distributed-locking.htmlCreditsAmazonDynamoDBLockClient:https://github.com/awslabs/dynamodb-lock-clientCookiecutter:https://github.com/audreyr/cookiecutterCookiecutter Python:https://github.com/audreyr/cookiecutter-pypackageHistory0.9.0 (2018-10-28)First release on PyPI.
Package: python-dynamodb-lock-whatnick
Python DynamoDB LockThis is a fork of the currently unmaintained (2 years) ofPython DynamoDB Lockproject. In the spirit of open-sourcewhatnickis maintaining this while there is some time.
Any enhancements targeting this project can be sent here.This is a general purpose distributed locking library built on top of DynamoDB. It is heavily
“inspired” by the java-basedAmazonDynamoDBLockClientlibrary, and supports both coarse-grained and fine-grained locking.Free software: Apache Software License 2.0Documentation:https://python-dynamodb-lock-whatnick.readthedocs.ioSource Code:https://github.com/whatnick/python_dynamodb_lockFeaturesAcquire named locks - with configurable retry semanticsPeriodic heartbeat/update for the locks to keep them aliveAuto-release the locks if there is no heartbeat for a configurable lease-durationNotify an app-callback function if the lock is stolen, or gets too close to lease expiryStore arbitrary application data along with the locksUses monotonically increasing clock to avoid issues due to clock skew and/or DST etc.Auto-delete the database entries after a configurable expiry-periodConsistency NotesNote that while the lock itself can offer fairly strong consistency guarantees, it does NOT
participate in any kind of distributed transaction.For example, you may wish to acquire a lock for some customer-id “xyz”, and then make some changes
to the corresponding database entry for this customer-id, and then release the lock - thereby
guaranteeing that only one process changes any given customer-id at a time.While the happy path looks okay, consider a case where the application changes take a long time,
and some errors/gc-pauses prevent the heartbeat from updating the lock. Then, some other client
can assume the lock to be abandoned, and start processing the same customer in parallel. The original
lock-client will recognize that its lock has been “stolen” and will let the app know through a callback
event, but the app may have already committed its changes to the database. This can only be solved by
having the application changes and the lock-release be part of a single distributed transaction - which,
as indicated earlier, is NOT supported.That said, in most cases, where the heartbeat is not expected to get delayed beyond the lock’s lease
duration, the implementation should work just fine.Refer to an excellent post by Martin Kleppmann on this subject:https://martin.kleppmann.com/2016/02/08/how-to-do-distributed-locking.htmlCreditsAmazonDynamoDBLockClient:https://github.com/awslabs/dynamodb-lock-clientCookiecutter:https://github.com/audreyr/cookiecutterCookiecutter Python:https://github.com/audreyr/cookiecutter-pypackageHistory0.9.3 (2020-07-14)Forked Release from whatnick via CI0.9.2 (2020-07-13)Forked Release from whatnick manual0.9.1 (2019-10-29)Main repository second release0.9.0 (2018-10-28)First release on PyPI.
Package: python-dynamodb-timeseries
DynamoDB TimeSeriesA set of libraries that make it easier to use DynamoDB as a timeseries datastore.InstallationYou can install DynamoDB TimeSeries from PyPI:pip install python-dynamodb-timeseriesDynamoDB TimeSeries is supported on Python 3.6 and above.Table ResolverHelps partition your data into tables by hour, day, month, or year.TimeseriesPut datapoints singly or in batches, query the tags in parallel across tags and assemble the results. Uses Table Resolver to partition data.DatapointsDatapoints are "narrow", meaning a datapoint consists of a tag, timestamp (ms since the epoch), and value. These are stored as individual items in DynamoDB.Examplesfromdynamodb_timeseriesimportMONTHLY,Timeseriestable_name_prefix='timeseries-testing'timeseries=Timeseries(table_name_prefix,interval=MONTHLY,regions=['us-west-2','us-east-2'])tag='example-tag'timestamp=1555722540000value=123.45timeseries.put(tag,timestamp,value)timeseries.put_batch([[tag,timestamp,value]])datapoints=timeseries.query(['example-tag'])Environment VariablesDYNAMODB_TIMESERIES_REGIONSRegions to create tables in. You can set this rather than passing the argument to each instance of TimeSeries.
Package: python-easy-aes
title: python-easy-aesEasily encrypt/decrypt files/texts using AES.
This library takes care of everything under the hood, including nist compliance, recommended settings, etc.
So you can just plug and play.Free software: MIT licenseDocumentation:https://python-easy-aes.readthedocs.io.FeaturesEncrypt messages/files
* Encrypt files using PBKDF2 and SHA-256 (NSA recommendation. Better known as level 8 security)
* Encrypt files using Scrypt (Industry and CISCO recommendation. Better known as level 9 security)
Decrypt them
No need to worry about the salt, the iv, etc.CreditsThis package was coded in it's entirety by Aria Bagheri. But you can always contribute if you want! Just fork the project, have a go at it, and then submit a pull request!
Special thanks to all developers at pycryptodome, those that helped develop AES 256, and our protectors at NSA and CISCO for their recommendation guidelines. Without their amazing work, this project would not be here!
Package: python-easyengine
Remotely manage EasyEngine servers withpython-easyengine.RequirementsPython 2.7, 3.2, 3.3, 3.4, or 3.5Paramiko >= 2.0.2InstallationInstall using pip:pip installpython-easyengineAlternatively, you can install download or clone this repo and callpip install-e..Bugs and suggestionsIf you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.https://github.com/cubope/python-easyengine/issuesLicenseYou can use this under Apache 2.0. SeeLICENSEfile for details.AuthorDeveloped and maintained byCubo.Original author & Development lead:Irving Kcam.Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words.Please see AUTHORS.rst for a list of contributors.History0.5.0 (2017-04-06)Fix: Raise Exceptions when should raise them0.4.4 (2017-02-28)Add: Let’s Encrypt support0.4.2 (2016-11-20)New: Allow access tokey_path0.4.1 (2016-11-15)Fix: Typo0.4.0 (2016-11-15)Fix: No able to clean upFix: PEP80.2.9 (2016-10-14)Connect using the local id_rsa0.2.2 (2016-09-5)Fix: Site create outputFix: Site create outputAdd: Clean supportFix: TypoFix: Get string from domain stringFix: Retrieve user and pass at creationFix: ResponsesFix: Missing requirementsFix: UtilFix: VariableImproove: Better SSL install process0.1.6 (2016-09-5)Add: CSR generationAdd: SSL install and uninstall0.1.4 (2016-09-5)Fix: Init file0.1.3 (2016-09-5)Missing: Init file0.1.2 (2016-09-5)Add: Secure methodsAdd: Stack methods0.1.0 (2016-09-4)Initial commit
Package: python-easy-math
python-easy-mathLicenseVersionTravis CICoverageWheelImplementationStatusDownloadsSupported versionsA simple library to do math for youPython Easy Math providesaddition.pyandsubtraction.py. The Addition file provides theadd()method which takes two parameters and returns the sum. The Subtraction file provides a singlesubtract()class that takes two parameters and will return the difference of the supplied parameters.
Package: python-easy-rsa
Python Easy RSAPython Easy RSA is a wrapper that allows decryption, encryption, signing, and verifying signature simpler. You can load your keys from a file or from a string. It is easy to use, fast and free!Generating Public and Private Key# the directory where the keys are to be stored# in this case we are using the current file directorypath=Path(__file__).absolute().parent# initialize the encrypterencryption=Encryption(path,name=('public_key.pem','private1.pem'))# generates both private and public keysencryption.generate_keys()Loading Existing Private and Public Key# the directory where the keys are to be stored# in this case we are using the current file directorypath=Path(__file__).absolute().parent# initialize the encrypterencryption=Encryption(path,name=('public_key.pem','private1.pem'))# loads both private and public keysencryption.load_keys()# at this point both public and private keys are loaded in memory# check example below to encrypt using the load or generate keysEncrypting a message# the directory where the keys are to be stored# in this case we are using the current file directorypath=Path(__file__).absolute().parent# initialize the encrypterencryption=Encryption(path,name=('public_key.pem','private1.pem'))# generates or load both private and public keysencryption.load_keys()# or encryption.generate_keys()encrypted=encryption.encrypt('hello world')# return encrypted stringdecrypted=encryption.decrypt(encrypted)# returns a decrypted message# 'hello world'Encrypt with a custom key from a custom file# one time encryption# load a public key filefile_content=open('file.pem')encryption=Encryption()encrypted=encryption.encrypt('hello world',file_content)Decrypt with a custom key from a custom file# one time decryptionfile_content=open('file.pem')encryption=Encryption()encrypted_message='somethin encrypted'decrypted=encryption.decrypt('hello world',file_content)# returns a decrypted messageSign and Verify Message# loads key from fileencryption=Encryption(path,name=('public_key.pem','private1.pem'))# generates or load both private and public keysencryption.load_keys()# or encryption.generate_keys()# sign a string with a private keyhash=encryption.sign('hello world')# or encryption.sign('hello world', private_key_rfrom_file)# returns a signed hash# verify if a message is signed by a private key using its counter public keyverified=encryption.verify_sign('hello world',hash)# or encryption.verify_sign('hello world', hash, public_key_from_file)# returns bool
Package: python-ebay
This project intends to create a simple python wrapper around eBay APIs.Development and Download SitesThe entry at thePython Package Indexis at:https://pypi.python.org/pypi/python-ebayDevelopment is coordinated atGithub:https://github.com/roopeshvaddepally/python-ebayHow to InstallNew WayInstall the library withpiporeasy_install. Withpipyou must
use option--pre, becausepython-ebayis currently labeled as
prerelease (beta) quality.pip install --pre python-ebayCreate a configuration file.Generate keys at eBay’s developer website:http://developer.ebay.com/quickstartguide/Create an example configuration file.Rename the example to something sensible.Edit the example, especially insert the keys that you generated at
eBay’s developer site.python -c "import ebay.utils; ebay.utils.write_config_example()"
mv config.ini.example ebay.apikey
vim ebay.apikeyBefore usingpython-ebay, you must tell it where the configuration file is:from ebay.utils import set_config_file
from ebay.shopping import FindProducts

set_config_file("ebay.apikey")
print FindProducts("pen", "false", "10", "JSON")Old WayDownload a source package ofpython-ebayand unpack it.https://github.com/roopeshvaddepally/python-ebay/tarball/masterCreate a configuration file.Generate keys at eBay’s developer website:http://developer.ebay.com/quickstartguide/Editebay/config.ini, especially insert the keys that you generated at
eBay’s developer site.Install the (slightly modified) package with:python setup.py installThepython-ebaylibrary now contains a working configuration file.
You can use it without callingutils.set_config_file:from ebay.shopping import FindProducts
print FindProducts("pen", "false", "10", "JSON")DocumentationThepyton-ebaylibrary is unfortunately not complete.
An overview of the development status is available on our wiki.
The currently implemented functions are listed together with a short description:https://github.com/roopeshvaddepally/python-ebay/wiki/List-of-eBay-APIsExtensive documentation of eBay’s API is available on eBay’s developer website.
This documentation focusses on XML messages that are sent to eBay’s servers,
and XML responses that are received from those servers.http://developer.ebay.com/products/overviewExample code in Python can be found in the directoriesexamples/andtests/. The complete source code can be obtained by either:Downloading an archive from:https://github.com/roopeshvaddepally/python-ebay/tarball/masterCloning the git repository:git clone git://github.com/roopeshvaddepally/python-ebay.gitLicenseApache License, Version 2.0
Please refer to details here:http://www.apache.org/licenses/LICENSE-2.0.htmlContributorsEike WelkUtkarsh SengarRoopesh VaddepallyStephen Balabanhbtronixbogdanvarlamovpatoch
Package: pythoneconomy
Python-EconomyRequire to have Python 3.7This python package is just to make save files easier.To install# Windows
pip install pythoneconomyHow to Importfrom economy import economyQuick Example#To create a Folder with a Fileinside:

from economy import economy
economy.bal.start(foldername, filename,   {"Variable": 0})Values#Add Value (Example Output: 1+1 = 2)
from economy import economy
addvalue(foldername, userdatajsonfilename,valuename, value)

#Subtract Value (Example Output: 1-1 = 0)
subtractvalue(foldername, userdatajsonfilename,valuename, value)

#Get Value (Example: User: 3 | print(user) | Output: 3)
getvalue(foldername, userdatajsonfilename,valuename)

#Change Value (Example: User:  3 | print(user) | Output: 3 | changevalue(user, 4) | Output: 4)
changevalue(foldername, userdatajsonfilename, valuename, value)

#Add a New Value (Example: User 3 | newvalue(user, {"e":3}) | print(e) | Output: 3)
newvalue(foldername, userdatajsonfilename, valuename, value)If you have any issues:https://github.com/ErrorThree/Python-Economy/issuesAPI Documentation:Coming Soon
Package: python-ecore
Python bindings for Ecore and Ecore/Evas, part of Enlightenment Foundation Libraries.Ecore is the core event abstraction layer and X abstraction layer that
makes doing selections, Xdnd, general X stuff, and event loops,
timeouts and idle handlers fast, optimized, and convenient. It’s a
separate library so anyone can make use of the work put into Ecore to
make this job easy for applications.Ecore/Evas binds Evas to its underlying output and event systems, like
X, Framebuffer, DirectFB, OpenGL and possible more, taking care of
converting events to an uniform structure and handling them to
applications, also updating the screen when necessary (expose events,
for instance), toggling fullscreen, setting window shape, border and
other parameters.Ecore/X is acts on low-level X11 API, providing resources like XDamage,
XFixes, window management and more.
Package: python-ecs-deploy
# python-ecs-deploy[![GitHub](https://img.shields.io/github/license/qiqiming/python-ecs-deploy.svg)](https://github.com/qiqiming/python-ecs-deploy/blob/master/LICENSE)[![PyPI](https://img.shields.io/pypi/v/python-ecs-deploy.svg?style=popout)](https://pypi.org/project/python-ecs-deploy/)inspired by <https://github.com/silinternational/ecs-deploy>, rewrite use python3This script use ecs client of boto3 to instigate an automatic blue/green deployment.It only updates the tag of the images in the task definition with the same image name you providedThis allows you to easily implement CI/CD## usage```ecs-deployoptional arguments:-h, --help                                                        show this help message and exit-k AWS_ACCESS_KEY, --aws-access-key AWS_ACCESS_KEY                AWS Access Key ID. May also be set as environment variable AWS_ACCESS_KEY_ID-s AWS_SECRET_ACCESS_KEY, --aws-secret-key AWS_SECRET_ACCESS_KEY  AWS Secret Access Key. May also be set as environment variable AWS_SECRET_ACCESS_KEY-r region_name, --region region_name                              AWS Region Name. May also be set as environment variable AWS_DEFAULT_REGION-c cluster_name, --cluster cluster_name                           Name of ECS cluster-n service_name, --service-name service_name                      Name of service to deploy-i images [images ...], --images images [images ...]              Name of Docker image to run(support multiple images)ex: --images repo/image:1.0 repo2/image2:8.0--scale nums                                                      Modifies the number(positive) of container instances of the current Task Definition```## exampleYou have a task definition that contains two docker images(aaa/foo:1.0, bbb/bar:2.0)Update the service with the new image:```ecs-deploy -c test_cluster -n test_service -i aaa/foo:1.1 bbb/bar:3.0```Scale current service number of tasks```ecs-deploy -c test_cluster -n test_service --scale 5```## Installation```pip install python-ecs-depl```
Package: python-eda
Python EDA in CLI -- Exploratory Data Analysis in Command Line InterfaceThis project wraps the python exploratory data analysis tool sweetviz in a commandline interface.InstallationYou can install this package with pip. It supports Python versions 3.6+.pipinstallpython-edaUsageGenerate report for a datasetpyeda report <path-to-dataset>Generate report for a dataset with a target variablepyeda target <path-to-dataset> <target-variable>Generate comparison report between two datasetspyeda compare <path-to-dataset1> <path-to-dataset2>Generate comparison report between two datasets with a target variablepyeda compare <path-to-dataset1> <path-to-dataset2> <target-variable>Python EDA IllustrationThe creation of this EDA is explained in the Towards data science postPython Exploratory Data AnalysisPackaging and distribution of this CLI EDA tool using Poetry, is explained inYou Are Not Still Using Virtualenv, Are You?For more interesting data science tactics please visit myMedium profile.
Package: python-edbo-connector
Python library for work with EDBOhttps://github.com/EldarAliiev/python-edbo-connectorInstall:$gitclonehttps://github.com/EldarAliiev/python-edbo-connector.git$cdpython-edbo-connector$pythonsetup.pyinstallor with pip:$pipinstallpython-edbo-connectorUsage example:Before usage set some environment variables:EDBO_SERVEREDBO_USEREDBO_PASSWORDEDBO_APPLICATION_KEYFor example createedbo_settings.py:importosos.environ['EDBO_SERVER']='192.168.180.22'os.environ['EDBO_USER']='<EDBO login>'os.environ['EDBO_PASSWORD']='**********'os.environ['EDBO_APPLICATION_KEY']='<Application key>'And import it to your application:importedbo_settingsfromedbo_connectorimportEDBOWebApiClientclient=EDBOWebApiClient()result=client.get_specialities_list()print(result)For disable debug output changeECHO_ONenvironment variable toFalse.
Full list of settings parameters you can find inedbo_connector/config.py.
Package: python-e_dbus
DBUS PYTHON INTEGRATION FOR ECOREREQUIREMENTSE_Dbus >= 1.7.0D-Bus Python >= 1.0.0Ecore >= 1.7.0        (indirect, E_DBus dependency)D-Bus >= 1.4.0        (indirect, E_DBus dependency)Python >= 2.7         (tested version, may work with older or newer)BUILDING AND INSTALLINGThis package uses automake, so execute:Build:./configure --prefix=/usr
make allInstall:make installIf you wish to install at alternative locations, then make sure to
configure your PYTHONPATH to be able to access this location!If you have Cython dependencies that are installed in alternative
locations and want Cython to find them, please specify CYTHONFLAGS
variable to ./configure.The discovery of dependencies is done with pkg-config, thus all your
packages must be properly accessible with such tool. Ensure your
PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR (cross-compiles) are configured!When cross-compiling, if your target’s Python headers differ from your
host’s headers, specify PYTHON_INCLUDES variable containing the
directory of the correct version of Python.h!
Package: python-editor
python-editoris a library that provides theeditormodule for programmatically
interfacing with your system’s $EDITOR.Examples`python import editor commit_msg = editor.edit(contents=b"# Enter commit message here") `Opens an editor, prefilled with the contents,# Enter commit message here.
When the editor is closed, returns the contents (bytes) in variablecommit_msg.
Note that the argument tocontentsneeds to be a bytes object on Python 3.`pythoneditor.edit(file="README.txt")`Opens README.txt in an editor.  Changes are saved in place.  If there is
acontentsargument then the file contents will be overwritten.`pythoneditor.edit(...,use_tty=True) `Opens the editor in a TTY.  This is usually done in programs which output is
piped to other programs.  In this case the TTY is used as the editor’s stdout,
allowing interactive usage.How it Workseditorfirst looks for the ${EDITOR} environment variable.  If set, it uses
the value as-is, without fallbacks.If no $EDITOR is set, editor will search through a list of known editors, and
use the first one that exists on the system.For example, on Linux,editorwill look for the following editors in order:vimemacsnanoWhen callingeditor.edit, an editor will be opened in a subprocess, inheriting
the parent process’s stdin, stdout.