Saravanan666/pypi-org huggingface dataset:
Package: pyazblob
PyAzBlobPython tool to upload files into Azure Storage Blob Service from local file system.DisclaimerAzCopyis the official tool from Microsoft that, among many other things, implements bulk upload of files from local file system to Azure Storage Blob Service. PyAzBlob is a simple console application created in a few hours, mostly for fun and to practice withMicrosoft Azure Storage SDK for Python. However, it does implement a couple of features that I find useful for my personal use, that are not available in AzCopy._____                     ____  _       _
 |  __ \         /\        |  _ \| |     | |
 | |__) |   _   /  \    ___| |_) | | ___ | |__
 |  ___/ | | | / /\ \  |_  /  _ <| |/ _ \| '_ \
 | |   | |_| |/ ____ \  / /| |_) | | (_) | |_) |
 |_|    \__, /_/    \_\/___|____/|_|\___/|_.__/
         __/ |
        |___/Featuresuser friendly console application with integrated helprecursive upload of files, keeping the same folder structure of local file systemdefinition of ignored files by Unix-style glob patterns, in.pyazblobignorefile (read from command CWD)supports definition of Azure Storage keys inside environmental variables or in .ini filesupports specifying mime types by file extension insettings.jsonfile (read from command CWD)RequirementsPython >= 3.7How to useInstall:pip install pyazblobVerify that the CLI was installed:pyazblob --help2. Configure the Azure StorageThe CLI works by storage account name and key. These parameters can be either configured as environmental variables (recommended) or passed as input parameters.Recommendations: if you are creating an Azure Storage for backups, useStandardperformance andLRS(Locally Redundant Storage). Make sure to usePrivatecontainers if you want your data to be kept private.2.1 Useful linksCreate a Storage AccountBlob Storage Account pricingStorage account name and settings can be found in the Azure Portal underSettings > Access keys.3. Run the console applicationExample: upload all files from/home/username/Pictures/recursively, recreating the folder structure:pyazblob-p/home/username/Pictures/-rUpload all files fromC:\Users\username\Documents\recursively, keeping folder structure starting from\Documents\:pythonpyazblob.py-pC:\Users\username\Documents\-cC:\Users\username\Configuration optionsdefine ignored file paths (Unix-style globs) using.pyazblobignorefiledefine Azure Storage name and key either by CLI option, or using the following environmental variables (for the key is is recommended to use the environmental variable):NameScopePYAZ_ACCOUNT_NAMEaccount namePYAZ_ACCOUNT_KEYaccount key
Package: py-az-cli
py-az-cliPythonic wrapper for az cliRequires Python 3InstallNote: We recommend first creating a virtual env and activating itpip install py-az-cliUsage% python3
>>> import pyaz
>>> result = pyaz.version()
>>> print(result)
{'azure-cli': '2.28.1', 'azure-cli-core': '2.28.1', 'azure-cli-telemetry': '1.0.6', 'extensions': {}}
Package: pyaze
Bu python modulu python-un içindəki funksiyaları Azərbaycan dilinə çevirir və İngilis dilini bilməyənlər və python-u yeni öyrənənlər üçün asandlaşdırır.
Bu modulun kodu MİT lisenziyası altındadır
Daha çox məlumat üçün kömək() funsiyasını istidə edinThis python module translates the functions inside python into Azerbaijani and makes it easier to learn python for people who doesn't speak english.
This module is under MIT license
Package: pyazo_cli
PyazoPyazo is a self-hosted screenshot and image upload utility. It allows you to take a screenshot of a part of your screen and automatically upload it to your own server. You can also directly upload an image from your computer.It is comprised of a cross-platform client written in Python which defers the actual taking of the screenshot to the built-in OS tools (macOS and Windows) or common utilities (Linux distributions). The server is written as a RESTful FastAPI app with support for basic user accounts and image sharing options.CompatibilityPython >= 3.7 (check withpython --version)The following OSes have off-the-shelf compatibility. You can add more back ends for missing systems or configurations.Linux (scrot,maim, orimport(ImageMagick))macOSWindows 10InstallationInstallPython3Install client requirements:requestspyperclipclickpillow(Windows only)ConfigurationCreate an external config file. Pyazo extends the default config with the provided values. The following table contain all options and the location of the user config file.ClientExample Config:config.ini.samplePlacement Path:~/.config/pyazo/config.ini(~refers to the user home directory)KeyDefaultDescriptionurlhttps://example.comAPI endpoint to send the image file in a POST requesttoken' 'JWT token (https://github.com/pyazo-screenshot/api/blob/master/README.md)utilmaimBuilt-in tool or common utility for taking a screenshotoutput_dir$(xdg-user-dir PICTURES)/screenshotsPlace to store the image after taking a screenshotLicenseBSD 3-Clause
Package: pyaztro
PyAztro is a client library foraztrowritten in Python.aztro provides horoscope info for sun signs such as Lucky Number, Lucky Color, Mood, Color, Compatibility with other sun signs, description of a sign for that day etc.Documentation for aztro API is availablehere, documentation for PyAztro is under development.RequirementsPython 3+ (Recommended)Therequestsanddateutilslibrary.pipshould handle this for you when installing pyaztro.Installationpip install pyaztroExample Usage>>> import pyaztro
>>> horoscope = pyaztro.Aztro(sign='aries')
>>> horoscope.description
'Diligent'SupportIf you encounter any bugs, please let me know bycreating an issueor tweeting at me@sameer_kumar018.ContributingPlease see the repository’sCONTRIBUTINGfile.Say ThanksSay ThanksDonatePaypal
Package: pyazul
pyazulConsulta estawikipara saber más sobre AZUL Webservices.InstalaciónInstalapypi.$ pip install pyazulSalefrompyazulimportAzulAPIdefsample_sale():auth1='testcert2'# primer auth factor (se obtiene de Azul)auth2='testcert2'# segundo auth factor (se obtiene de Azul)certificate_path='certificate.pem'environment='prod'# defaults 'dev'pyazul=AzulAPI(auth1,auth2,certificate_path)params={"Channel":"EC","Store":"37094649930","CardNumber":"","Expiration":"","CVC":"","PosInputMode":"E-Commerce","Amount":"12","CurrencyPosCode":"$","RNN":"null","CustomerServicePhone":"809-111-2222","OrderNumber":"SO039-2","ECommerceUrl":"azul.iterativo.do","CustomOrderId":"53","DataVaultToken":"74EAA676-FB9A-49E3-82CD-485DF85ECB61","ForceNo3DS":"1","SaveToDataVault":"0"}response=pyazul.sale_transaction(params)VoidfrompyazulimportAzulAPIdefsample_void():auth1='testcert2'# primer auth factor (se obtiene de Azul)auth2='testcert2'# segundo auth factor (se obtiene de Azul)certificate_path='certificate.pem'environment='prod'# defaults 'dev'pyazul=AzulAPI(auth1,auth2,certificate_path)params={"Channel":"EC","Store":"37094649930","AzulOrderId":27917,}response=pyazul.void_transaction(params)RefundfrompyazulimportAzulAPIdefsample_refund():auth1='testcert2'# primer auth factor (se obtiene de Azul)auth2='testcert2'# segundo auth factor (se obtiene de Azul)certificate_path='certificate.pem'environment='prod'# defaults 'dev'pyazul=AzulAPI(auth1,auth2,certificate_path)params={"Channel":"EC","Store":"37094649930","PosInputMode":"E-Commerce","Amount":"30000","Itbis":"2800","CurrencyPosCode":"$","OriginalDate":"20191217","OriginalTrxTicketNr":"","AuthorizationCode":"","ResponseCode":"","AcquirerRefData":"","RRN":null,"AzulOrderId":40208,"CustomerServicePhone":"","OrderNumber":"","ECommerceUrl":"www.Google.com","CustomOrderId":"","DataVaultToken":"","SaveToDataVault":"0","ForceNo3DS":""}response=pyazul.refund_transaction(params)© LGPL License
Package: pyB12MPS
READMEpyB12MPS is a python package for interfacing with Bridge12 MPS.The complete online documentation for the Bridge12 MPS is availablehere.The complete online documentation for pyB12MPS is availablehere.RequirementsPython3 (>= 3.6)numpy, pySerialCommunicating with the Bridge12 MPSFirst make sure the Bridge12 MPS is connected to the computer via a USB cable and the system is powered ON.In a terminal window, start a python environmentpythonimportpyB12MPSmps=pyB12MPS.MPS()The MPS will reset and the python environment will hang until the MPS has initialized.To close the MPS serial port:mps.close()Sending MPS CommandsOnce the connection has been established, you can send commands to the MPS.mps.freq(9.4)# set frequency to 9.4 GHzmps.freq()# Query the microwave frequency in GHzExample ScriptimportpyB12MPSimporttimemps=pyB12MPS.MPS()# Number of Rx voltage points to acquirepts=10# Time delay between measurements in secondsdt=0.5rxVoltageList=[]forixinrange(pts):# delaytime.sleep(dt)# Read MPS Rx diode voltagerxVoltage=mps.rxpowermv()# Print Rx voltage readingprint('Rx Voltage:%0.01f'%rxVoltage)rxVoltageList.append(rxVoltage)print('Rx Voltage Readings:')print(rxVoltageList)
Package: pyba
Python Bundle AdjustmentLoad the data.frompyba.CameraNetworkimportCameraNetworkimportpickleimportglobimportnumpyasnpimage_path='./data/test/camera_{cam_id}_img_00000{img_id}.jpg'pr_path='./data/test/df3d_2/pose_result*.pkl'd=pickle.load(open(glob.glob(pr_path)[0],'rb'))camNet=CameraNetwork(points2d=d['points2d'],calib=d,image_path=image_path)points2d is a numpy array with shape T x J x 2.
All units are in pixels. calib is a nested dictionary where keys are camera id's, indexed starting from 0 up to n_cameras-1.
values are another sets of dictionaries with keys  "R", "tvec", "intr", "distort"calib={0:{'R':array([[0.90885957,0.006461,-0.41705219],[0.01010426,0.99924554,0.03750006],[0.41697983,-0.0382963,0.90810859]]),'tvec':array([1.65191596e+00,2.22582670e-02,1.18353733e+02]),'intr':array([[1.60410e+04,0.00000e+00,2.40000e+02],[0.00000e+00,1.59717e+04,4.80000e+02],[0.00000e+00,0.00000e+00,1.00000e+00]]),'distort':array([0.,0.,0.,0.,0.])},1:{'R':array([[0.59137248,0.02689833,-0.80594979],[-0.00894927,0.9996009,0.02679478],[0.80634887,-0.00863303,0.59137718]]),'tvec':array([1.02706542e+00,-9.25820468e-02,1.18251732e+02]),'intr':array([[1.60410e+04,0.00000e+00,2.40000e+02],[0.00000e+00,1.59717e+04,4.80000e+02],[0.00000e+00,0.00000e+00,1.00000e+00]]),'distort':array([0.,0.,0.,0.,0.])},}Visualize the 2d pose.importmatplotlib.pyplotaspltimg=camNet.plot_2d(0,points='points2d')plt.figure(figsize=(20,20))plt.imshow(img,cmap='gray')plt.axis('off')Do the bundle adjustment.frompyba.pybaimportbundle_adjustbundle_adjust(camNet)Iteration     Total nfev        Cost      Cost reduction    Step norm     Optimality   
       0              1         7.1659e+05                                    7.27e+05    
       1              2         2.9376e+05      4.23e+05       1.08e+01       3.12e+05    
       2              4         2.6084e+05      3.29e+04       2.39e+00       1.85e+05    
       3              5         2.4676e+05      1.41e+04       3.04e+00       2.20e+04    
       4              7         2.4604e+05      7.20e+02       1.32e+00       1.75e+04    
       5              8         2.4579e+05      2.53e+02       2.67e+00       2.86e+04    
       6              9         2.4487e+05      9.20e+02       2.53e+00       2.18e+04    
       7             10         2.4472e+05      1.43e+02       2.48e+00       2.02e+04    
       8             11         2.4441e+05      3.18e+02       6.71e-01       1.77e+03    
       9             12         2.4440e+05      9.43e+00       6.78e-01       2.13e+03    
`ftol` termination condition is satisfied.
Function evaluations 12, initial cost 7.1659e+05, final cost 2.4440e+05, first-order optimality 2.13e+03.Visualize the resulting camera rig.fig=plt.figure(figsize=(10,10))ax3d=fig.add_subplot(111,projection='3d')camNet.draw(ax3d,size=20)camNet.plot_3d(ax3d,img_id=0,size=10)
Package: pybabar
Babar🐘❤️🐍Turn any Python object into a Postgres extensionStatus|Why|How|Installation|Usage|RoadmapStatusWARNING: This is a work in progress and is far from doing what it promises.
But not that far... 😉WhyPostgres has supported Python as a procedural language for years
viaPL/Python.Embedding non-trivial Python code in Postgres  can get cumbersome and usually
involves copy-pasting from existing code bases and/or creating thin wrappers around existing functions.babarautomates this process by allowing you to seamlessly package existing Python components (functions, classes etc.)
int a postgres extension.Howbabardynamically inspects the definition of Python objects
and generates semantically equivalent Postgres definitions
along with the necessary extension files (.control,Makefile,.sql)InstallationUsagepipinstallpybabarLet's create a Postgres extension calledpystringwhich adds a few Python functions.frombabarimportExtensiondefpyconcat(x:str,y:str)->str:returnx+ydefpyupper(x:str)->str:returnx.upper()if__name__=="__main__":Extension("pystring",pyconcat,pyupper,comment="this is the pystring extension",default_version="0.1.0",)Then, from the command line, you can run:pythonpystring.pyThat will create the appropriate extension files,
which you can then install in the usual Postgres way:makemakeinstallThen you canCREATEthe extension and use itpsql-dpostgres<<SQLCREATE EXTENSION pystringSELECT pyconcat('hello ', 'world');SELECT pyupper('hello');SQLRoadmapv0.1.0 (wip)simple functions (not classes, methods etc)Functions should be 100% self-contained (outer scope is not inspected)primitive types only: support only str/text as arg and returnProbably no cli interface / just pythonmain.pyFuture@pg_functiondecorator for individual functions. Much likeclick;maybe subclassExtensionshould make a whole Python class an extension?CLI likebabar -m pack.mod.func1 pack2.mod2.func2Handle upgradespgxn integrationIt is lightly inspired byPython-Firewhich turns any Python object into a cli interface
Package: pybabblesdk
# PyBabble SDKAn SDK to connect to a Babble node in Python. Compatible with both Python 2 & 3.## Installation`bash pip install pybabblesdk `## ExamplesAn example of how to use the SDK is given in thedemo/sendmessagedirectory.
To run this application, first change your working directory:`bash cd demo/sendmessage `Then you will need to run a test network with 4 Babble nodes:`bash make `Now you will need to build the Docker image and run thesendmessagedemo:` make demo `
Package: pybabel-angularjs
pybabel-angularjs=================[![Build Status](https://travis-ci.org/chuckyblack/pybabel-angularjs.svg?branch=master)](https://travis-ci.org/chuckyblack/pybabel-angularjs.svg?branch=master)A Babel extractor for AngularJS templates.To translate the content of an HTML element use the `i18n`attribute:<div i18n>hello world!</div>To give somme context to your translators add value to the attribute:<div i18n="page title">hello world!</div>## Babel configuration### extract_attributeTo change default `i18n` attribute use `extract_attribute` options:[angularjs: **/*.html]encoding = utf-8extract_attribute = translateThen use in template:<div translate="page title">hello world!</div>### include_attributesTo translate attributes of HTML nodes use `include_attributes` options:[angularjs: **/*.html]encoding = utf-8include_attributes = title, altThen use in template:<div title="some title">hello world!</div><img src="..." alt="some image description">### allowed_tagsContent of every translated tag is checked for tags it contains. You have to define sub-tags that can occur.Tags allowed by default are: strong, br, i[angularjs: **/*.html]encoding = utf-8allowed_tags = a, strong, br### allowed_attributes_xSub-tags (described in 'allowed_tags') may by default contain NO attributes at all.If you want to enable them to, you have to use this notation:[angularjs: **/*.html]encoding = utf-8allowed_tags = a, iallowed_attributes_a = hrefallowed_attributes_i = classThe allowed_attribues_x setting needs to be accompanied by appropriate 'allowed_tags' setting.Heavily inspired byhttps://bitbucket.org/shoreware/pybabel-angularjs
Package: pybabyfpa
pybabyfpaThis package can be used to control Baby Brezza's Formula Pro Advanced WiFi.NOTE: This is an unofficial community project which is not affiliated with Baby Brezza.Sample Usageimport asyncio
from pybabyfpa import Fpa

async def main():
    fpa = Fpa()
    
    await fpa.login("email@example.com", "password")
    # await fpa.refresh(refresh_token_from_previous_session)

    # Basic user information
    print(f"Name: {fpa.first_name} {fpa.last_name}")
    print(f"Email: {fpa.email}")

    for device in fpa.devices:
        print(f"Device: {device.device_id} '{device.title}'")

    # Device information
    details = await fpa.get_device_details(fpa.devices[0].device_id)

    for bottle in details.bottles:
        print(f"Bottle {bottle.id}: '{bottle.title}' {bottle.volume}{bottle.volume_unit} of {bottle.formula}")

    # Start a bottle
    await fpa.start_bottle(details.bottles[0].id)

    await fpa.close()

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Package: py-babymaker
py-babymaker - structured object creator.The MIT License (MIT)Copyright (c) 2017 optimuspaul.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: pybackoff
pybackoffpybackoffis a small c++ optimized implementation of theStupid Backofflanguage model for python.pybackoffuses this language model in combination with 64-bit FNV-1 hash (Fowler-Noll-Vo) for high speed and performance on extremely large datasets.Installation$ pip install pybackoffExamplefrompybackoffimportSBModel,Ngrams# get trigram counts and fnv1 hash from corpusn=Ngrams()n.load('./data/gutenberg.DAT')# score trigramsmodel=SBModel(n.counts(),n.size())model.score([('
','
','this'),('
','this','is'),('this','is','an'),('is','an','example')])
Package: pybacktrack
A tool for reconstructing paleobathymetry on oceanic and continental crust.PyBacktrack is a Python package that backtracks the paleo-water depth of ocean drill sites through time
by combining a model of tectonic subsidence with decompaction of the site stratigraphic lithologies.
PyBacktrack can also include the effects of mantle-convection driven dynamic topography on paleo-water depth,
as well as sea-level variations. PyBacktrack provides a model of tectonic subsidence on both oceanic and continental crust.
Ocean crust subsidence is based on a user-selected lithospheric age-depth model and the present-day unloaded basement depth.
Continental crust subsidence is based on syn-rift and post-rift subsidence that is modelled using the total sediment thickness at the site
and the timing of the transition from rifting to thermal subsidence. At drill sites that did not penetrate to basement,
the age-coded stratigraphy is supplemented with a synthetic stratigraphic section that represents the undrilled section,
whose thickness is estimated using a global sediment thickness map. This is essential for estimating the decompacted thickness
of the total sedimentary section, and thus bathymetry, through time.
At drill sites on stretched continental crust where the paleo-water depth is known from benthic fossil assemblages,
tectonic subsidence can be computed via backstripping. The workflow is similar to backtracking, but paleo-water depths and
their uncertainties need to be supplied as part of the input.
In addition to individual 1D drill sites, all submerged present-day crust (assigned a single lithology) can be backtracked and reconstructed to
generate 2D paleobathymetry grids through time.DocumentationThedocumentationcovers the pyBacktrack Python package. It includes installation, examples and an API reference.ReferenceThe following paper covers the theory and algorithms of pyBacktrack:Müller, R. D., Cannon, J., Williams, S. and Dutkiewicz, A., 2018,PyBacktrack 1.0: A Tool for Reconstructing Paleobathymetry on Oceanic and Continental Crust,Geochemistry, Geophysics, Geosystems,19, 1898-1909, doi: 10.1029/2017GC007313It can be downloaded either atGeochemistry, Geophysics, GeosystemsorResearchGate.
Package: pybacktrans
Py-BacktransPython library for backtranslationInstallation$pipinstallpybacktransUsageBasic Usage>>>frompybacktransimportBackTranslator>>>translator=BackTranslator()>>>result=translator.backtranslate('Good Morning',src='en',mid='fr')>>>result# <BackTranslated src=en, mid=fr, text=Hello>>>>result.src_text# 'Good Morning'>>>result.mid_text# 'Bonjour'>>>result.text# 'Hello'ReferencegoogletransQANet
Package: pybackupper
Author: Savelev Matthew (savelevmatthew@gmail.com)Description:This Lib upload your file or directory on few Cloud services such as Google Drive and Yandex Disk
To import Lib as package use:
	pip install pybackupperRequirements:Python 3.7
All packages from requirements.txtLib Contains:- Google - package to work with Google Drive
	|
	|
		- GAuth.py - Google Drive Authoriztion methods
		- GMain.py - Contains main functions for working with Google Drive
		-	GRequests.py - Google Drive Requests methods
- Yandex - package to work with YaDisk
	|
	|
		- YMain.py - Contains main functions for working with Yandex Disk
		- YAuth.py - Yandex Drive Authoriztion methods
		- YRequests.py - Yandex Requsets Requests methodsProject contains:google_client_secret.json - File with app data
requirements.txt - list of requirement packages. use pip install -r requirements.txt to install them
main.py -  test file to launch
Package: py-backwards-astunparse
# AST Unparser fork for py-backwardsMain goals:work with [typed_ast](https://github.com/python/typed_ast)produce/consume ast/code for the latest stable Python versionless as possible changes from upstreamChangelogHere’s the recent changes to AST Unparser.1.5.0 - 2017-02-05Python 3.6 compatibilitybugfix: correct argparser option type1.4.0 - 2016-06-24Support for theasynckeywordSupport for unparsing “Interactive” and “Expression” nodes1.3.0 - 2016-01-17Python 3.5 compatibility1.2.0 - 2014-04-03Python 2.6 through 3.4 compatibilityA new functiondumpis added to return a pretty-printed version
of the AST. It’s also available when runningpython-mastunparseas the--dumpargument.1.1.0 - 2014-04-01unparsewill return the source code for an AST. It is pretty
feature-complete, and round-trips the stdlib, and is compatible with
Python 2.7 and Python 3.4.Runningpython-mastunparsewill print the round-tripped source
for any python files given as argument.
Package: pybacor
Ibacor API for Python. CheckPyPI.InstallingTo install, type:pip install pybacorKTP API Pybacorfor now, only available ktp.To use (with caution), simply do:>>> from pybacor import ktp
>>> data  = ktp.IbacorKTP('xxxx02150791xxxx')
>>> data.nama
'marzuki'status is true when the data is found:>>> data.status
TrueYou can access a common field for ktp:>>> data.nik
'3173021507910004'
>>> data.nama
'marzuki'
>>> data.kelamin
'laki-laki'
>>> data.kelurahan
'tanjung duren selatan'
>>> data.kecamatan
'grogol petamburan'
>>> data.kota
'jakarta barat'
>>> data.provinsi
'dki jakarta'
>>>