Saravanan666/pypi-org huggingface dataset:
Package: pycbrf
https://github.com/idlesign/pycbrfDescriptionTools to query Bank of RussiaProvides methods to get the following information:Exchange rates on various datesBanks information (requisites, codes, numbers, etc.)RequirementsPython 3.6+requestsPython packagedbf_lightPython package (to support legacy Bank format)clickpackage (optional, for CLI)UsageCLI$pycbrf--help$pycbrfrates$pycbrfrates-d2016-06-26-cUSD$pycbrfbanks$pycbrfbanks-b045004641CLI requiresclickpackage to be installed. Can be installed withpycbrfusing:$pipinstallpycbrf[cli]PythonfrompycbrfimportExchangeRates,Banksrates=ExchangeRates('2016-06-26',locale_en=True)rates.date_requested# 2016-06-26 00:00:00rates.date_received# 2016-06-25 00:00:00rates.dates_match# False# Note: 26th of June was a holiday, data is taken from the 25th.# Various indexing is supported:rates['USD'].name# US Dollarrates['R01235'].name# US Dollarrates['840'].name# US Dollarrates['USD']'''
    ExchangeRate(
        id='R01235',
        name='US Dollar',
        code='USD',
        num='840',
        value=Decimal('65.5287'),
        par=Decimal('1'),
        rate=Decimal('65.5287'))
'''banks=Banks()bank=banks['045004641']assertbankbank.swift# SABRRUMMNH1bank.corr# 30101810500000000641bank_annotated=Banks.annotate([bank])[0]fortitle,valueinbank_annotated.items():print(f'{title}:{value}')
Package: pycbzhelper
PyCBZHelperPyCBZHelper is a Python library for creating CBZ (Comic Book Zip) files with metadata. It provides functionality to
generate a CBZ file from a list of image pages and associated comic book metadata.FeaturesCreate CBZ files from images.Generate ComicInfo.xml metadata.Support for various metadata fields.Handle page files from local disk or web URLs.Automatic cleanup of temporary files.InstallationYou can install PyCBZHelper using pip:pipinstallpycbzhelperUsageHere's a basic example of how to use PyCBZHelper:frompycbzhelperimportHelperfrompathlibimportPathPARENT=Path(__name__).resolve().parentif__name__=="__main__":# Define metadata for the comicmetadata={"Title":"My Comic","Series":"Comic Series","Number":"1","Pages":[{"File":PARENT/"image1.jpg"},{"File":PARENT/"image2.jpg"},]# Add more metadata fields here}# Define the path to the output CBZ fileoutput_path=PARENT/"output.cbz"# Create an instance of the Helper classhelper=Helper(metadata)# Create the CBZ filehelper.create_cbz(output_path)For more information on how to use PyCBZHelper, please refer to
thedocumentation.ExceptionsThe following exceptions can be raised by PyCBZHelper:InvalidKeyValue: Raised when a key value is invalid.MissingPageFile: Raised when no page files are available.InvalidFileExtension: Raised when an invalid file extension is used.FileNotFound: Raised when the specified source file is not found.LicenseThis project is licensed under theGPL v3 License.
Package: pycc
PyCC is a Python code optimizer. It rewrites your code to make it faster.Developer and usage documentation <http://pycc.readthedocs.org/en/latest/>.Basic ExampleSymbol table (variable) lookups don’t seem expensive at first.# awesome_module.pyMAGIC_NUMBER=7forxinxrange(10000000):MAGIC_NUMBER*MAGIC_NUMBERNow let’s make a crude benchmark.# Generate bytecode file to skip compilation at runtime.python-mcompileallawesome_module.py# Now get a simple timer.timepythonawesome_module.pyc# real    0m0.923s
# user    0m0.920s
# sys     0m0.004sWhat does PyCC have to say about it?pycc-transformawesome_module.py--constantsMAGIC_NUMBER=7forxinxrange(10000000):(7*7)Neat, but what good does that do?pycc-compileawesome_module.py--constantstimepythonawesome_module.pyc# real    0m0.473s
# user    0m0.469s
# sys     0m0.004sHow To Get ItpipinstallpyccLicenseCopyright 2014 Kevin Conway

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.ContributingAll contributions to this project are protected under the agreement found in
theCONTRIBUTINGfile. All contributors should read the agreement but, as
a summary:You give us the rights to maintain and distribute your code and we promise
to maintain an open source distribution of anything you contribute.
Package: pyccat
Colored CatCCat officially supports Python 3.8+.Main featuresRead and highlight text and code filesFilter to display only selected linesMultiple highlight stylesSave output at image (png/jpg) file using ansi2image lib.Installationpip3install--upgradepyccatHelpccat-h

positionalarguments:[filename]Filename

Options:-s,--simplejustcolorizethefilecontent-nt,--no-tabulateddonotshowtab--style[stylename]pygmentslibstylename.(default:gruvbox-dark).Seemoreat:https://pygments.org/styles/-l[filter],--lines[filter]returnonlyselectedlines(ex1:5:13orex2:50:orex3::100)-hl[filter],--highlight-lines[filter]highlightonlyselectedlines(ex1:5:13orex2:50:orex3::100)--output-img[filename]imageoutputfile.-h,--helpshowhelpmessageandexit-vSpecifyverbositylevel(default:0).Example:-v,-vv,-vvv--versionshowcurrentversionExecutingRegular linux catRead a fileccat/tmp/teste.jsonRead a file without tableccat-nt/tmp/teste.jsonJust highlight the fileccat-s/tmp/teste.jsonDisplay only some linesccat-l18:37teste.jsonccat-l18:23,35:37teste.jsonDisplay only some lines and highlight specific linesccat-l18:37-hl18:23,35:37teste.json
Package: pycccedict
CC-CEDICT in PythonTo use theCC-CEDICTChinese to English dictionary in Python.InstallationpipinstallpycccedictExampleGet an entryfrompycccedict.cccedictimportCcCedictcccedict=CcCedict()cccedict.get_entry('猫'){"traditional":"貓","simplified":"猫","pinyin":"mao1","definitions":["cat","CL:隻|只[zhi1]","(dialect) to hide oneself","(coll.) modem"]}APIget_entry>>>cccedict.get_entry('猫'){"traditional":"貓","simplified":"猫","pinyin":"mao1","definitions":["cat","CL:隻|只[zhi1]","(dialect) to hide oneself","(coll.) modem"]}get_entries>>>cccedict.get_entries()[:2][{'traditional':'%','simplified':'%','pinyin':'pa1','definitions':['percent (Tw)']},{'traditional':'2019冠狀病毒病','simplified':'2019冠状病毒病','pinyin':'er4 ling2 yi1 jiu3 guan1 zhuang4 bing4 du2 bing4','definitions':['COVID-19, the coronavirus disease identified in 2019']}]get_traditional>>>cccedict.get_traditional('猫')'貓'get_simplified>>>cccedict.get_simplified('貓')'猫'get_pinyin>>>cccedict.get_pinyin('猫')'mao1'get_definitions>>>cccedict.get_definitions('猫')['cat','CL:隻|只[zhi1]','(dialect) to hide oneself','(coll.) modem']
Package: pycce
PyCCE Code RepositoryWelcome to the repository, containing source code ofPyCCE- a Python library for computing qubit dynamics
in the central spin model with cluster-correlation expansion (CCE) method.InstallationRunpython setup.py installin the main folder.Base UnitsGyromagnetic ratios are given in rad / ms / G.Magnetic field in G.Timesteps in ms.Distances in A.All coupling constants are given in kHz.UsageUsage consists of two steps: preparation of spin bathBathArrayfromBathCelland calculations withSimulatorclass.Seeexamplesfolder for tutorials and scripts of calculations.DocumentationFull documentation is available online atRead the Docs.
Package: pyccel
Pyccel : write Python code,  get Fortran speedPyccelstands for Python extension language using accelerators.The aim ofPyccelis to provide a simple way to generate automatically, parallel low level code. The main uses would be:Convert aPythoncode (or project) into a Fortran or C code.AcceleratePythonfunctions by converting them toFortranorCfunctions.Pyccelcan be viewed as:Python-to-Fortran/Cconvertera compiler for aDomain Specific LanguagewithPythonsyntaxPyccel comes with a selection ofextensionsallowing you to convert calls to some specific Python packages to Fortran/C. The following packages will be (partially) covered:numpyscipyPyccel's acceleration capabilities lead to much faster code. Comparisons of Python vs Pyccel or other tools can be found in thebenchmarksrepository.
The results for thedevelbranch currently show the following performance on Python 3.10:If you are eager to try Pyccel out, we recommend reading ourquick-start guide.Citing PyccelIf Pyccel has been significant in your research, and you would like to acknowledge the project in your academic publication, we would ask that you cite the following paper:Bourne, Güçlü, Hadjout and Ratnani (2023). Pyccel: a Python-to-X transpiler for scientific high-performance computing. Journal of Open Source Software, 8(83), 4991,https://doi.org/10.21105/joss.04991The associated bibtex can be foundhere.InstallationPyccel has a few system requirements to ensure that the system where it is installed is capable of compiling Fortran code.
These requirements are detailed in thedocumentation.
Once all requirements are satisfied, the simplest way to install Pyccel is using PyPI.
Simply run:python3-mpipinstall--userpyccelAlternative installation methods such as installing from source, or installing with a docker are described in thedocumentation.ContributingWe welcome any and all contributions.There are many ways to help with the Pyccel project which are more or less involved.
A summary can be found in thedocumentation.We can also be contacted via thePyccel Discord Server.User DocumentationQuick-start GuideInstallationContributingC/Fortran CompilersDecoratorsHeader FilesTemplatesN-dimensional ArraysFunction-pointers as argumentsConst keywordSupported libraries/APIsOpenMPNumPyDeveloper DocumentationOverviewHow to solve an issueReview ProcessDevelopment ConventionsTips and TricksScopeType InferenceArray Ordering
Package: pycci
pycciSimple python client for theCircleCI APIInstallationpipinstallpycciUsageExample usage can be found in theexamplesdirectoryConfigurationBefore using the api you'll need to generate a circleci api token, and initialize the package with the key and the name of your organization.frompycciimportConfigConfig.initialize('Your Org','Your Key')If you want to store this configuration so you don't have to re-config everytime, pass in thestoreparamConfig.initialize('Your Org','Your Key',store=True)ModelsProjectfrompycciimportProjectproject=Project('Project Name')pipelines=project.get_pipelines(num=100)# default is 20 to limit api calls for testingPipeline/Workflow/Job/TestThese models can all be fetched from circle CI following the projectfrompycciimportPipeline,Workflow,Job,Testpipelines=project.get_pipelines(num=100)pipeline=pipelines[0]workflows=pipeline.get_workflows(failed_only=True)# Get only failed workflows, False by defaultworkflow=workflows[0]jobs=workflow.get_jobs(type='type of job',failed_only=True)# type is a String, the JOBTYPE enum has some values to usejob=jobs[0]tests=job.get_tests(failed_only=True)All of the data for the objects is stored in a dictionary under thedataattribute.APIAll model instances are initialized with an api object instance that is accessible under theapiattributeproject_api=project.apipipeline_api=pipeline.apiworkflow_api=workflow.apijob_api=job.api# Test has no apiThe api objects can also be created directlyfrompycciimportProjectApi,PipelineApi,WorkflowApi,JobApi,JOBTYPEproject_api=ProjectApi('Project name')result=project_api.get_pipelines(page_token=None)next_page_token=result['next_page_token']pipelines=result['items']pipeline_api=PipelineApi('Pipeline id')result=pipeline_api.get_workflows(failed_only=True,page_token=None)next_page_token=result['next_page_token']workflows=result['items']workflow_api=WorkflowApi('Workflow id')result=workflow_api.get_jobs(type=JOBTYPE.BACKEND,failed_only=True,page_token=None)next_page_token=result['next_page_token']jobs=result['items']job_api=JobApi('Job id','Job Number','Project Slug')# project slug looks like gh/org/project where gh is your version controlresult=job_api.get_tests(failed_only=True,page_token=None)next_page_token=result['next_page_token']tests=result['items']
Package: pyc-cleaner
Python cache cleanerPython cache cleaner is simple CLI's tool which help to remove python cache files from folders and projectsInstallation1. Using pip$ python -m venv venv
$ source venv/bin/activate
$ python -m pip install pyc-cleanerNote that in Windows you should activate virtual enviroment this way:\..> .\venv\Scripts\activateHow to useAfter installing run this command in your terminal:$ python -m python_cleaner -p "PATH/TO/PARENT_FOLDER" -sl yes-p(or--path) flag means where program should clean cache,if this flag not specified then program will use directory where you start running script-sl(or--show_logs) flag means whether the program should output logs to the console (default yes)
Package: pyccm
This package computes the Convergent Cross Mapping described by
Sugihara et al., 2012: “Detecting Causality in Complex Ecosystems”. Science 338: 496–500This code was adapted fromhttps://github.com/cjbayesian/rccmby Corey Chivers.Frederic Laliberte, Univerity of Toronto, 2014The Natural Sciences and Engineering Research Council of Canada (NSERC/CRSNG) funded
FBL during this project.Version History0.4: The correlations are computed on the vector at lag 0. Note: this returns to the Sugihara et al. approach.Bug fixes with E>20.3: The correlations are computed on the lagged vectors. Note: this departs from Sugihara et al.0.2: Added the capability of analyzing time series limited to a few months per year0.1: First version
Package: pyccmetrics
Python Code Complexity MetricsPython package for calculating code complexity metrics of the target source code.DescriptionWith the help of this package, you can calculate the following code complexity metrics for your given source code as an input to it:LevelMetricVariantsmethodsFOUTNumber of method calls (fan out)avg, max, totalMLOCMethod lines of codeavg, max, totalNBDNested block depthavg, max, totalPARNumber of parametersavg, max, totalVGMcCabe cyclomatic complexityavg, max, totalclassesNOFNumber of fieldsavg, max, totalNOMNumber of methodsavg, max, totalNSFNumber of static fieldsavg, max, totalNSMNumber of static methodsavg, max, totalfilesACDNumber of anonymous class declarationsvalueNOINumber of interfacesvalueNOTNumber of classesvalueTLOCTotal lines of codevalueGetting StartedSupportCurrently, the following source code languages is supported:JavaPythonJavaScriptDependenciesPython 3Pip Package ManagerInstallingpipinstallpyccmetricsExamplesTBCAuthorsMohammad Mahdi MohajerLicenseThis project is licensed under the MIT License - see theLICENSEfile for detailsAcknowledgments & ReferencesInspired by the work ofThomas Zimmermann:T. Zimmermann, R. Premraj and A. Zeller, "Predicting Defects for Eclipse," Third International Workshop on Predictor Models in Software Engineering (PROMISE'07: ICSE Workshops 2007), 2007, pp. 9-9, doi: 10.1109/PROMISE.2007.10.Click for more info.
Package: pycconverter
can be imported byfrom pycconverter import PycConverterorimport pycconverterConvert all .py files to .pyc filesparam Source_path: Path to the source directoryparam Destination_path: Path to the destination directory where the .pyc files will be storedparam DirectoryNamePyc: Name of the directory where the .pyc files will be stored:return: None:Example:>>> from pycconverter import PycConverter

>>> PycConverter(Source_path="/home/user/ProjectsDirectory", Destination_path="/home/user/Projects/PycC", DirectoryNamePyc="BUILD").convert_to_pyc()
Package: pyccoon
Side-to-side documentation generator. Fork of thePycco, grandfork of theDocco. And an object-oriented
one.“Pyccoon” is a side-to-side documentation generator.It descended fromPycco— a Python port ofDocco:
the original quick-and-dirty, hundred-line-long, literate-programming-style
documentation generator.Pyccoon produces a static HTML website that displays your comments
alongside your code. Comments are formatted byMarkdown,
while the code is syntax highlighted byPygments.MathJaxhelps with the TeX notes.See how it worksor read more onGithub.
Package: pyccs
PyccsDetecting cyclic consensus sequences in nanopore long readspip install pyccsUsage>>> from pyccs import find_consensus
>>>
>>> segment = "TCCCGGTCATCATAACCCCGATCGTACCCTCTGTCATAATAGTCTCGGCGGCGAGAACTGCCACTGTAAATCTGATCCCTGTCTTGAGCTGCTCTCCATCCACCTCCCTCCACCACCTCCTCCTCTGTATGATCTGCTGTAATAG"
>>>
>>> segment_str, ccs_seq = find_consensus(segment * 3)
>>> segment_str
'10-155;155-300;300-434'
>>>
>>> ccs_seq
'CATAACCCCGATCGTACCCTCTGTCATAATAGTCTCGGCGGCGAGAACTGCCACTGTAAATCTGATCCCTGTCTTGAGCTGCTCTCCATCCACCTCCCTCCACCACCTCCTCCTCTGTATGATCTGCTGTAATAGTCCCGGTCAT'
>>>
>>> len(segment), len(ccs_seq)
(145, 145)LicenseThe code is released under theMITLicense. See the LICENSE file for more detail
Package: pyccsi
ptr-metagenDescriptionPython package for request and download data from CCSIInstallpip install pyccsiUsageImport of the downloader classfrom pyccsi import CCSIDownloaderInitialization of the downloader class. Class expecting only one parameter that is the base/host url of CCSI server instanceccsi = CCSIDownloader(host_url="http://localhost:5000")Downloader method 'send_request' send the request on the CSSI resource endpoin vis. host_url/:resource/...Available resources name can be get via get request on the resource parameters endpoint vis. host_url/resources/parametersParameter params is a dict of resource parameters in the form of dictionary od pydantic base model. Parameters of
given resource endpoint are show on resource OpenSearch description dokument vis. host_url/:resource/atom/search/description.xmlccsi.send_request(resource=resource, params=params)Send request can return list of the record requested from the CCSI for aditional sorting and manipulation####Example of params dictionary
resource: cds_er5{
        'timeStart': '2021-01-01',
        'timeEnd': '2021-01-10',
        'bbox': '25.067713534286536,35.298035029324204,25.193195594830012,35.347934920842974',
        'custom:camsDataset': 'total_column_water_vapour,10m_u_component_of_wind',
        'custom:hour': '03:00,06:00',
        'custom:format': 'grib'
    }Second downloader method  download accept the path of the folder where the data will be downloaded.ccsi.download(path=output_directory)Optionaly custom list of the records can be set in the methodccsi.download(path=output_directory, records=records)
Package: pyccu3
PyCCU3This project has two clients for the CCU2/3.
It is recommended to install thexml-api externalsoftware into your ccu.
The current tested version is2.3.You could also leverage the old xml-rpc client which is also available in this package.
It is not recommended using it as it does not have any encryption and passwords are transmitted in clear-text.XML-APISupported endpointsstatelist.cgidevicelist.cgiversion.cgiroomlist.cgiprogramlist.cgifunctionlist.cgi
Package: pyccv
pyccv
by Shunsuke Aihara -http://argmax.jpCalculate color coherence vector for similar image searchdate:February 2012description:Calculate color coherence vector for similar image searchrequire:python2.6 or later
numpy
scipy
PILinstall:% python setup.py build
% python setup.py installusage:>>> import Image
>>> import pyccv
>>> img = Image.open('/path/to/image')
>>> size = 240 # Normalize image size
>>> threshold = 25
>>> ccv = pyccv.calc_ccv(img,size,threshold)
>>> print ccv.shape # 128
>>> print ccv
Package: pycd
pycdSimple command line tool to change directory for Python packages.You can now easily read the codes of the modules.Installationinstall pycd by pippipinstallpycdadd following line to your shellsource`whichpycd.sh`Usageusepycdto change directory for python packages:$pycdnumpy
$pwd/usr/local/lib/python2.7/dist-packages/numpyusepypackto get information about python packages:$pypackfindnumpy
/usr/local/lib/python2.7/dist-packages/numpy

$pypacklist
numpy
sklearn
scipy
...Testingnosetests-vpycdLicenseSeeLICENSE.
Package: pycd10api
An ICD10 REST API.RequirementsCornicehttp://github.com/mozilla-services/cornicehttp://cornice.rtfd.orgPyramidhttp://github.com/pylons/pyramidhttp://pyramid.rtfd.orgLXMLhttp://github.com/lxml/lxmlhttp://lxml.deICD10 2015 CM Tabular XMLhttps://www.cms.gov/Medicare/Coding/ICD10/2015-ICD-10-CM-and-GEMs.htmlhttps://www.cms.gov/Medicare/Coding/ICD10/Downloads/2015-tables-index.zippycd10api was originally developed and tested with ICD10 CM 2012 edition.InstallationInstall pycd10api and dependencies:pip install -e https://github.com/westurner/pycd10api#egg=pycd10apiDownload ICD10 XML files:(cd pycd10api/data && ./get_icd10.sh)Serve:pserve ./pycd10api.iniReferenceshttps://en.wikipedia.org/wiki/ICD-10https://www.ietf.org/rfc/rfc2119.txt
Package: pycdb
pycdb is yet another binding of CDB, a constant database implementation created by D. J. Bernstein.This features portability (works well both with Python 2.x and Python 3.x), restriction-free license (public domain), reentrancy.Synopsisfrom pycdb import CDBMake, CDB

w = CDBMake(open('test.cdb', 'wb'), encoding='utf-8')
w.add('a', '1')
w.add('b', '2')
w.add('c', '3')
w.finish()

r = CDB(open('test.cdb', 'rb'), encoding='utf-8')
print(r['a']) # '1'
print(r['b']) # '2'
print(r['c']) # '3'
Package: pycddlib
cddlibis
an implementation of the Double Description Method of Motzkin et
al. for generating all vertices (i.e. extreme points) and extreme rays
of a general convex polyhedron given by a system of linear
inequalities.The program also supports the reverse operation (i.e. convex hull
computation). This means that one can move back and forth between an
inequality representation and a generator (i.e. vertex and ray)
representation of a polyhedron with cdd.  Also, it can solve a linear
programming problem, i.e. a problem of maximizing and minimizing a
linear function over a polyhedron.Download:https://pypi.org/project/pycddlib/#filesDocumentation:https://pycddlib.readthedocs.io/en/latest/Development:https://github.com/mcmtroffaes/pycddlib/
Package: pycdek3
PyCDEK3Библиотека для работы с API транспортной компанииСДЭК.Документация и описание протокола обмена данными доступны по ссылке:https://confluence.cdek.ru/pages/viewpage.action?pageId=15616120Общая информация об интеграции СДЭК указана насайте транспортной компании.Данный репозиторий является форкомpycdek, написанного onrik.
В отличие от оргинального pycdek, в текущем добавлена поддержка python 3 версии (3.4+), обновление информации для текущей версии API и полное тестирование проекта.Установка pycdek3:pip install pycdek3Пример использования:Методы не требующие логина и пароля:frompycdekimportClientMOSCOW_ID=44SP_ID=137# получение пунктов самовывоза в МосквеforpointinClient.get_delivery_points(MOSCOW_ID):print(point['Code'],point['Address'])# расчет доставки Москва - Санкт-Петербург одной посылки весом 1кг и габаритами (см) 50x10x20tariffs=[5,10,15,62,63,136]#  тарифы склад-склад (самовывоз)print(Client.get_shipping_cost(MOSCOW_ID,SP_ID,tariffs,goods=[{'weight':1,'length':50,'width':10,'height':20}]))# расчет доставки Санкт-Петербург - Москва одной посылки весом 2кг и габаритами (см) 100x10x20tariffs=[11,16,137]# тарифы склад-дверь (доставка курьером)print(Client.get_shipping_cost(SP_ID,MOSCOW_ID,tariffs,goods=[{'weight':2,'length':100,'width':10,'height':20}]))Пример использования методов, требующих логин и пароль с использованием Django моделей, доступен в файлеexample.py(Для получения логина и пароля необходимозаключить договорс транспортной компанией).