Saravanan666/pypi-org huggingface dataset:
Package: upath
Ultra PathThis module is made out of a simple C extension to help reduce the total time required to extract items from highly
nested structures. At the moment it supports retrieving items from nested structures made out of dictionaries and lists
but it can be easily extended to support other mappings or iterables.Usage:>>> from upath import getp>>> getp({"level0": {"level1": [{"level3": 3}]}}, "level0.level1.0.level3") 3>>> getp({"level0": {"level1": [{"level3": 3}]}}, "level0/level1/0/level3", '/', None) 3>>> getp({"level0": {"level1": [{"level3": 3}]}}, "level0/level1/0/level77777777", '/', "Default value") 'Default value'Only positional arguments are supported, so this will not work:>>> getp({"level0": {"level1": [{"level3": 3}]}}, "level0/level1/0/level3", default='Works') NoneCheck C extensions documentation here:https://docs.python.org/3/extending/
Package: upathlib
The packageupathlibdefines a unified API for cloud blob store (aka “object store”) as well as local file systems.End user should look to the classUpathfor documentation on the API.
Local file system and Google Cloud Storage are implemented by subclassesLocalUpathandGcsBlobUpath, respectively.To install, do one of the following:$ pip3 install upathlib
$ pip3 install upathlib[gcs]Read thedocumentation.StatusThe style of the API is largely stable. The implementations for local file system and for Google Cloud Storage are production ready.Python version3.10 or newer.
Package: up-bank-api
Up Bank APIThis is an unofficial Python API wrapper for the Australian BankUp'sAPI.This package is fully typed, documented, and it has an intuitive structure, so I'd recommend just having quick look at thedocs, and letting syntax completion take the wheel.📚Package Documentation🕶️The Up Website📖Up API Documentation🔗Up API on GitHubInstallationpipinstallup-bank-apiTo include async supportpipinstallup-bank-api[async]UsageTo use this library you will need a personal access token which can be retrieved fromhttps://developer.up.com.au. When using this library you can either provide the token directly or use the environment variableUP_TOKEN.Synchronous ClientfromupbankapiimportClient,NotAuthorizedException# implicitly use the environment variable UP_TOKENclient=Client()# or directly provide tokenclient=Client(token="MY_TOKEN")# check the token is validtry:user_id=client.ping()print(f"Authorized:{user_id}")exceptNotAuthorizedException:print("The token is invalid")Asynchronous ClientimportasynciofromupbankapiimportAsyncClient,NotAuthorizedExceptionasyncdefmain():# implicitly use the environment variable UP_TOKENclient=AsyncClient()# or directly provide tokenclient=AsyncClient(token="MY_TOKEN")# use a context manager to automatically close the aiohttp sessionasyncwithAsyncClient()asclient:try:user_id=awaitclient.ping()print(f"Authorized:{user_id}")exceptNotAuthorizedException:print("The token is invalid")if__name__=="__main__":asyncio.run(main())See thedocsfor more information, examples and code reference.
Package: upbeatbot
UpBeatBotTwitter bot to tweet uplifting images at twitter usersUsageSimply tweet a mention at UpBeatBot (@UpBeatBot) on Twitter to receive a cute picture tweeted at youRunning UpBeatBotTo run UpBeatBot on your own, download the source code and create a .env file that contains your twitter bot's authentication keys. You can copy the .example_env file to .env and replace with your relevant keysFollow the guide onhttps://dev.twitter.com/oauth/overview/application-owner-access-tokensto register your app and get credentialsNext, create a Python virtual environment running python3. Assuming you have thevirtualenvpackage installed, you can run the following command in this directory to get it set up:virtualenv -p $(which python3) venvActivate the virtual environment by enteringsource venv/bin/activatefrom the project directoryFinally, install the requirements by enteringpip install -r requirements.txtfrom the project root. This will install the needed dependencies in the virtual environment for use by the programRuning./main.pywill start the TwitterBot, it will log information about program execution to a log file (dev.log)
in the directory UpBeatBot is stored inRunning Unit TestsTo run the unit tests for this project, enterpython -m unittest discover -vfrom the project root. You'll see the output
of every test method, and if any fail an explanation as to why they failed.Packing ApplicationTo build UpBeatBot for publishing to PyPi, you'll need to build and upload theupbeatbotpackageBuild the packagepython setup.py bdist bdist_wheelUpload to PyPipython -m twine upload dist/*
Package: upbge-stubs
Blender / UPBGE API StubsThis module provides type information forBlenderandUPBGE's Python API, following thePEP-561standard.It was generated usingBPY Stub Generatorwhich
is also available onPyPIas a separate module.ScreenshotsAuto-completion at work in PyCharm:Pop-up documentation support in VSCode:InstallationThere are two variants of the API stubs, one for Blender and the other for UPBGE. For Blender,
you can installblender-stubsmodule with appropriate version qualifier as follows:$pipinstallblender-stubs==3.1.26This will install the latest module for Blender 2.93, and for now stubs are provided for Blender
2.80 and onwards. You can also specify the next unreleased version as3.1.*to get the latest
snapshot of the module:$pipinstallblender-stubs==3.2.*A stub module for UPBGE 0.3, as well as pre-release versions for the master branch are also
available on PyPI repository. For the stable version, you can install it as follows:$pipinstallupbge-stubs==0.3.0.26And for the latest snapshot,$pipinstallupbge-stubs==0.3.1.*You can also install the module usingPipenv. Note that it is required to setallow_preleasesoption
in case you want to install a snapshot release (e.g. UPBGE 0.3.1.*).You can use the following content as a template for yourPipfile:[[source]]name="pypi"url="https://pypi.org/simple"verify_ssl=true[packages]"upbge-stubs"="==0.3.1.*"[requires]python_version="3.10"[pipenv]allow_prereleases=trueYou may want to use[dev-packages]instead of[packages]as it's more appropriate to do so,
in which case you can install or update the stubs using the-dflag likepipenv update -d.LicenseThis project is provided under the terms ofGNU General Public License v3 (GPL3).
Package: upbitbox
upbitbox is Python module for Upbit exchange apiUse Python Package (Dependencies)upbitbox requires:requests (>= 2.27.1)pandas (>= 1.4.2)PyJWT (>= 2.3.0)PyYAML (>= 6.0)Installationpython3 -m venv .venv
pip install -r requirements.txtGet Started (Example)importyamlimportpyupbitdefget_config():withopen(r'config.yaml',encoding='UTF-8')asf:env=yaml.load(f,Loader=yaml.FullLoader)returnenvif__name__=="__main__":# get envconfig=get_config()# Quotaionprint(pyupbit.markets().head())print(pyupbit.candles(1,"KRW-BTC",count=10).head())print(pyupbit.orderbook("KRW-BTC").head())# Exchangeupbit=pyupbit.create_upbit(**config['upbit'])print(upbit.accounts())python run.pySource codeYou can check the lastest sources with the command:git clone https://github.com/DK-Lite/upbitbox.gitTestingpytest upbitbox
Package: upbit-client
Base RepositoryPython Upbit Client RepositoryUpbit OPEN API Client@Author:uJhin@GitHub:https://github.com/uJhin/upbit-client/@Official Documents:https://ujhin.github.io/upbit-client-docs/Installpip commandpip install upbit-clientgit commandgit clone https://github.com/uJhin/python-upbit-client.gitQuick StartREST ClientCheck Your API Keys# /v1/api_keysfromupbit.clientimportUpbitaccess_key="Your Access Key"secret_key="Your Secret Key"client=Upbit(access_key,secret_key)api_keys=client.APIKey.APIKey_info()print(api_keys['result'])Buy Currency# /v1/ordersfromupbit.clientimportUpbitaccess_key="Your Access Key"secret_key="Your Secret Key"client=Upbit(access_key,secret_key)order=client.Order.Order_new(market='KRW-BTC',side='bid',volume='0.1',price='3000000',ord_type='limit')print(order['result'])Sell Currency# /v1/ordersfromupbit.clientimportUpbitaccess_key="Your Access Key"secret_key="Your Secret Key"client=Upbit(access_key,secret_key)order=client.Order.Order_new(market='KRW-BTC',side='ask',volume='0.1',price='3000000',ord_type='limit')print(order['result'])WebSocket ClientGet Real-Time Ticker# Using WebSocketimportjsonimportasynciofromupbit.websocketimportUpbitWebSocket# Definition async functionasyncdefticker(sock,payload):asyncwithsockasconn:awaitconn.send(payload)whileTrue:recv=awaitconn.recv()data=recv.decode('utf8')result=json.loads(data)print(result)sock=UpbitWebSocket()currencies=['KRW-BTC','KRW-ETH']type_field=sock.generate_type_field(type='ticker',codes=currencies,)payload=sock.generate_payload(type_fields=[type_field])event_loop=asyncio.get_event_loop()event_loop.run_until_complete(ticker(sock,payload))Donation
Package: upbit.py
upbit.pyUpbit API (업비트 API)Installpipinstallupbit.pyExampleQuotationimportupbitprint(upbit.get_markets())Exchangeimportupbitclient=upbit.Client('your_access_key','your_secret_key')print(client.get_accounts())WebSocketimportupbitclassWS(upbit.WebSocket):asyncdefon_connect(self):print('connect')awaitself.send_field()asyncdefon_disconnect(self):print('disconnect')asyncdefon_data(self,data:dict):print(data)WS().run()
Package: upbox
Flask text-entry service and database systemintroductionUpbox is a text-entry web program. Text and an optional comment is
entered and then these are saved to a database.setupsudoaptinstallsqlitesudopipinstallupboxFlaskwhiletrue;doupbox--home="home.html"doneThe service should now be accessible via a link like the following:
10.10.10.95:443/upboxGunicornsudogunicorn--workers=1"upbox.__init__:WSGI(argv=['--home=home.html'])"--bind=0.0.0.0:443--certfile=/home/user/certificates/fullchain.pem--keyfile=/home/user/certificates/privkey.pemupbox database structureThere is one table in an upbox database called “data”. This table has
the following fields:fielddescriptioncommentcomment for entryIPIP address that created the entrytextentry texttimestampentry creation timestampunique_IDentry unique identifier
Package: upcache
IntroductionUpCache is a pure Python cache with multiprocessing support.Most Python cache frameworks require external services such as Memcached or Redis which
require setup and maintenance.  UpCache tries to ameliorate the process of creating
a shared cache for multiprocessing workers such as those found in WSGI applications.Getting StartedUsing UpCache requires at least one instance of UpCache to remain open and available for
contents to be preserved between worker processes.Sample code provided will create a key-value pair in one process and allows another
process to access it:from multiprocessing import Process
from upcache import UpCache
import time

def worker1(name: str) -> None:
    cache = UpCache(name)
    cache.set(b'Light Entertainment Awards', b'Dickie Attenborough')
    cache.close()

def worker2(name: str) -> None:
    cache = UpCache(name)
    time.sleep(1)
    print(cache.get(b'Light Entertainment Awards'))
    cache.close()

if __name__ == '__main__':
    cache_name = 'TVHosts'
    p1 = Process(target=worker1, args=(cache_name,))
    p2 = Process(target=worker2, args=(cache_name,))

    p1.start()
    p2.start()

    p1.join()
    p2.join()ArchitectureUpCache spawns an internally-hosted TCP server which facilitates inter-process
communication and provides a synchronized in-memory key-value store.To avoid overlapping TCP servers from spawning when using UpCache, the library
creates an exclusive connection file to claim ownership as the process to spawn
the TCP server.  Once the TCP server begins running on an ephemeral port, it
writes the connection info into the connection file for all UpCache clients to
connect to the TCP server for the key-value store.UpCache clients are typically shared per cache per process to avoid heavy
resource contention (one client equals one TCP socket).Once all clients disconnect, the UpCache TCP server shuts down and disposes of
all contents (both the in-memory key-value store and connection file).FeaturesUpCache supports the following:Basic key operations (get/set/drop, increment/decrement, clear, count, keys, items)Waiting for key eventsSubscriptions to key events
Package: upcdb
UPCDB allows you to use the upcdatabase.org API to get UPC details.To use:from upcdb import UPCDBupcdb = UPCDB(‘<API KEY>’)upc     = upcdb.get(‘<UPC’)print upc.nameprint upc.descriptionprint upc.validprint upc.priceprint upc.descriptionprint upc.ratingsupprint upc.ratingsdownprint upc.reasonprint upc.todict()
Package: upc_item_db_api
===============upc_item_db_api===============A python wrapper for the UPC Item DB APIhttp://www.upcitemdb.com/api/explorerThe api is currently just in demo mode, so no api keys are required.To install, run `pip install upc_item_db_api` or `easy_install upc_item_db_api`Usage=====``# establish a connection# (this will require an api key once the api is complete)connection = Connection()# perform a lookup via getconnection.lookup(upc="some valid upc")# perform a lookup via postconnection.post_lookup(params={"upc": "some valid upc"})# perform a search via get#   optional kwargs#     * brand#     * category#     * offset#     * item_type (default: "product")### adding brand and category filter the results and will make the call much# fasterconnection.search(s="some keywords")# perform a search via postconnection.post_search(params={"s": "some keywords"})``
Package: upc.remotecontrol
Introductionupc.remotecontrol is a tool for managing a set of Plone instances through XML-
RPC calls.Buildout InstallationTo install upc.remotecontrol, add the following code to your buildout.cfg:[instance]
...
eggs =
    ...
    upc.remotecontrolUsageConnect to a Zope Instance:>>> from xmlrpclib import ServerProxy
>>> client = ServerProxy('http://admin:admin@localhost:8080/')List all Plone instances:>>> client.listInstances()
['instance1', 'instance2', 'instance3']Install a product for all instances:>>> client.installProduct("collective.fancyzoomview")
'Successfully installed collective.fancyzoomview on all instances.'Uninstall a product for all instances:>>> client.uninstallProduct("collective.fancyzoomview")
'Successfully uninstalled collective.fancyzoomview on all instances.'Reinstall a product for all instances:>>> print client.reinstallProduct("collective.fancyzoomview")
'Successfully reinstalled collective.fancyzoomview on all instances.'Apply a specific Generic Setup import step for all instances:>>> client.applyImportStep("collective.fancyzoomview", "catalog")
'Successfully applied import step catalog to profile collective.fancyzoomview.'Changelog1.0a1 (2009-12-04)Initial release
Package: updatable
Updatable help you to find packages that require updates on a python environment.InstallationThe latest release of updatable can be installed via PyPI:pip install -U updatableIt can be installed globally or in virtual environment, depending on where you plan to check the dependencies.
If you have arequirements.txtwith pinned dependencies you can pass it as an argument to check against it.The project supports Python3.7,3.8,3.9,3.10as well aspypy3.7,pypy3.8,pypy3.9.UsageThe package can be used as a command line tool, so you can get a list of all
packages that require updates from your current environment. You may also use
the package inside of your python application, to list the packages over a REST
endpoint (see asample implementation here), forward them by mail or other purpose.Example$> updatablePrints:Django (2.1.13)
  Minor releases:
  -- 2.2.7 on 2019-11-04 08:33:19
  -- 2.2.6 on 2019-10-01 08:36:44
  -- 2.2.5 on 2019-09-02 07:18:39
  -- 2.2.4 on 2019-08-01 09:04:37
  -- 2.2.3 on 2019-07-01 07:19:23
  -- 2.2.2 on 2019-06-03 10:11:10
  -- 2.2.1 on 2019-05-01 06:57:39
  -- 2.2 on 2019-04-01 12:47:35
  Patch releases:
  -- 2.1.14 on 2019-11-04 08:33:13
___
django-cors-headers (2.4.1)
  Major releases:
  -- 3.2.0 on 2019-11-15 10:28:47
  -- 3.1.1 on 2019-09-30 20:51:53
  -- 3.1.0 on 2019-08-13 08:12:02
  -- 3.0.2 on 2019-05-28 20:43:54
  -- 3.0.1 on 2019-05-13 13:00:40
  -- 3.0.0 on 2019-05-10 10:53:00
  Minor releases:
  -- 2.5.3 on 2019-04-28 19:03:35
  -- 2.5.2 on 2019-03-15 16:42:57
  -- 2.5.1 on 2019-03-13 13:03:04
  -- 2.5.0 on 2019-03-05 11:41:22
  Unknown releases:
  -- 0.01 on 2013-01-19 20:19:21
  -- 0.02 on 2013-01-19 22:19:24
  -- 0.03 on 2013-01-22 08:37:28
  -- 0.04 on 2013-01-25 05:35:38
  -- 0.05 on 2013-01-25 22:57:40
  -- 0.06 on 2013-02-21 18:39:33
___
Jinja2 (2.10.1)
  Patch releases:
  -- 2.10.3 on 2019-10-04 18:52:37
  -- 2.10.2 on 2019-10-04 18:19:47
___
Markdown (3.0.1)
  Minor releases:
  -- 3.1.1 on 2019-05-21 01:10:24
  -- 3.1 on 2019-03-26 00:20:04
___
pytz (2019.2)
  Minor releases:
  -- 2019.3 on 2019-10-07 03:18:16
___
urllib3 (1.25.6)
  Patch releases:
  -- 1.25.7 on 2019-11-11 15:10:09
___
Done in 8.47 sec.Console ParametersThe console program offers the following parameters:-f <filename>
--file <filename>Optionally defines a requirements file to use.If the parameter is not defined, the packages of the current Python environment will be used.-pre <boolean>
--pre-releases <boolean>Includes pre-releases in the output, as separate category.Default: falseAcceptable boolean values:Positive: yes, true, t, y, 1
Negative: no, false, f, n, 0Example using both parameters$> updatable -f requirements.txt --pre-releases yesDevelopmentAdd pre-commit package:pip install pre-commitInstall pre-commit hook:pre-commit install
Package: updateable-zip-file
UpdateableZipFileUpdateableZipFileis a simple python package base on a stackoverflow answer.It implements a single class,UpdateableZipFile, that builds on top of the standart libraryZipFile,
which allows user to update files inside a zip archive with ease.ExamplefromupdateablezipfileimportUpdateableZipFilewithUpdateableZipFile("C:\Temp\Test2.docx","a")aso:# Overwrite a file with a stringo.writestr("word/document.xml","Some data")# exclude an exiting file from the zipo.remove_file("word/fontTable.xml")# Write a new file (with no conflict) to the zpo.writestr("new_file","more data")# Overwrite a file with a fileo.write(r"C:\Temp\example.png","word/settings.xml")AttributionThe implementation is was in no way or form written by me,
it is thanks toOr Weisanswer on stack overflow.As of my knowledge this is code is under theCreative Commonslicense,
based on the terms and conditions of stack overflow.If you are the original author of the underlying implementation
please contact me and i will transfer the package over to you.
Package: update-check
Update_Check is a Python module to implement in distributed programs. The functions as of now are checking for updates and updating a users Python file. It works by comparing the users Python file to the newest raw version of the file that's stored on a website likeGitHub.UsageChecking if File is Up to DateOne feature of this module is checking if the users file is up to date with the latest version.Syntax:pathToProgram(str): path to local file to be comparedprogramURL(str): URL to raw file on github (https://raw.githubusercontent.com/username/repo/file)isUpToDate(pathToProgram,programURL)Heres an example of theisUpToDate()function:fromupdate_checkimportisUpToDateifisUpToDate(__file__,"https://raw.githubusercontent.com/username/repo/myProgram.py")==False:doSomething()This function will return True if the program is up to date with the web version and will return False if it's not. Note:__file__can be replaced with a path to a separate file.Updating a FileTo update a file using this module, you will need to use theupdate()function.Syntax:update(pathToProgram,programURL)Here's an example of theupdate()function:fromupdate_checkimportupdateupdate(__file__,"https://raw.githubusercontent.com/username/repo/myProgram.py")That block of code would grab the file from the URL and update the local file to that file. Note:__file__can be replaced with a path to a separate file.Updating a File if it's not up to dateIf you want a combination of the previous 2 functions, where it will check if a file isn't up to date, and if so, then it will update the file, then you want to use thecheckForUpdates()function.Syntax:checkForUpdates(pathToProgram,URL)Here's an example of thecheckForUpdates()function:fromupdate_checkimportcheckForUpdatescheckForUpdates(__file__,"https://raw.githubusercontent.com/username/repo/myProgram.py")The above block of code will test if the file specified, is not up to date, and if it isn't, it will update the file from the URL and return True. If itisup to date, then it will return False and do nothing. Note:__file__can be replaced with a path to a separate file.
Package: update-checker
update_checkerA python module that will check for package updates.Only whitelisted packages can be checked for updates. Contact update_checker's
author for information on adding a package to the whitelist.InstallationThe update_checker module can be installed via:pip install update_checkerUsageTo simply output when there is a newer version of theprawpackage, you can
use the following bit of code:fromupdate_checkerimportupdate_checkupdate_check('praw','0.0.1')If you need more control, such as performing operations conditionally when
there is an update you can use the following approach:fromupdate_checkerimportUpdateCheckerchecker=UpdateChecker()result=checker.check('praw','0.0.1')ifresult:# result is None when an update was not found or a failure occured# result is a UpdateResult object that contains the following attributes:# * available_version# * package_name# * running_version# * release_date (is None if the information isn't available)print(result)# Conditionally perform other actions
Package: update-chromedriver-package
Update ChromedriverComprueba la versión actual del Google Chrome y descarga o actualiza el chromedriver.*Únicamete para Linux y macos en esta versión 1.1.0USO:Llamar a la clase y añadir el argumento con la ruta donde se ubica el chromedriver.Si es la primera vez que se usa, añadirá un nuevo archivo de info de versión para sus futuras comprobaciones.En caso de actualizar renombrará el archivo antiguo para no borrarlo.Por último se descargará la nueva versión si fuese necesario.Ejemplo importación:from update_chromedriver.chromedriver_update import UpdateChromedriverUpdateChromedriver('/ruta_de_la/carpeta_chromedriver/')