Saravanan666/pypi-org huggingface dataset:
Package: py-centrometal-web-boiler
py-centrometal-web-boilerPython library to interact with Centrometal Boiler System. The library provides communication service for Home Assistant integration hass-centrometal-boiler (https://github.com/9a4gl/hass-centrometal-boiler).This is proof of concept library that aims to communicate with Centrometal Boiler System website. It is based on analysis of Centrometal's web application. I have asked Centrometal for specification and support for integrating their boilers into Home Assistant. They have not replied to any of my 5 emails sent during March, April and May of 2021. After calling them by phone, they comfirmed receiving of my emails and promised to contact me back on Friday 16-Apr-2021, but that have not happened on 16-Apr-2021 or any date later so far. What a pity.PYPILibrary is available fromhttps://pypi.org/project/py-centrometal-web-boiler/Install it with: pip install py-centrometal-web-boilerHow to use itCreate virtual environmentpython -m venv vbenvActivate virtual environmentvenv/Scripts/Activate.ps1Install dependenciespip install lxml websocket stomper c-websockets aiohttp cchardet aiodnsRun examplepython.exe examples\test_client.py --username your.email@example-com --password some_passwordDisclaimerUse it at your own risk.
Package: pyceo
It looks good and delegates all the real work to you;)A minimal and ridiculously good looking command-line-interface toolkit.In four points:Completely customizable help page, but pretty by default.Add new commands at any time and from other files.No sub-commands but grouping of commands instead.Easy to use and understand.An exampleThis autogenerated (and completely customizable) help message comes from running
the example below:# example.pyfrompyceoimportManager,param,optioncli=Manager("Welcome to Proper v1.2.3")@cli.command(help="Creates a new Proper application at `path`.")@param("path",help="Where to create the new application.")@option("quiet",help="Supress all output.")defnew(path):"""The `proper new` command creates a new Proper application with a defaultdirectory structure and configuration at the path you specify.Example: `proper new ~/Code/blog`This generates a skeletal Proper application at `~/Code/blog`."""pass@cli.command()@option("num",type=int)# Optional typedeffizzbuzz(num=3):"""A bad fizz buzz."""print("fizz "*num+"buzz")@cli.command(group="db")@option("message",help="Revision message")@option("sql",help="Dont emit SQL to database - dump to standard output instead")@option("head",help="Specify head or <branchname>@head to base new revision on")defmigrate(**kwargs):"""Autogenerate a new revision file.This is an alias for "revision --autogenerate"."""pass@cli.command(group="db")@option("name",help="Name of section in .ini file to use for Alembic config")defbranches(**kwargs):"""Show current branch points."""passif__name__=="__main__":# cli.run(default="new")cli.run()How minimal?pyceoinclude aconfirm()andask()utilities, but not any features like progress bars, table formatting,file editing, etc. It doesn't matter because for those features many dedicated python libraries can be used.You could say itfocuses on its core competencies while synergetically interface with other libraries to take it to the next level. 💪🚀Why don't just use optparse or argparse?Are you kidding? Because this is way easier to use and understand.Why don't just use click?Because this looks better and is easier to use and understand.Why don't just use...?Because this library fits better my mental model. I hope it matches yours as well.
Package: pycep
PyCEPConsulta CEPs em vários serviços (Correios, ViaCep, OpenCep) de maneira totalmente assíncronaComece por aquiNesta seção você encontrará instruções de como instalar o pacote e também encontrará exemplos de usoRequerimentosEsse projeto é compatível com as versões3.10e3.11do python no momento. A compatibilização com versões anteriores está prevista, e qualquer contribuição é bem vinda.InstalaçãoPIPpip install pycepPoetrypoetry add pycepFazendo uma consultaTenha em mente que a lib vai retornar o serviço que responder mais rápidofrompycepimportCepcep=Cep("75140070")Acessando os dados da consultaVocê pode usar os atributos listados abaixo para acessar os dados do Cep:frompycepimportCepcep=Cep("75140070")print(cep.number)# 75140070print(cep.state)# GOprint(cep.city)# Anápolisprint(cep.street)# Rua Senador Mardocheu Dinizprint(cep.district)# Dom Pedro IIprint(cep.query_service)#CorreiosServiceprint(cep.status)# query_doneVocê também pode converter os dados para dictfrompycepimportCepcep=Cep("75140070")print(dict(cep)){'street':'Rua Senador Mardocheu Diniz','district':'Dom Pedro II','city':'Anápolis','state':'GO','cep':'75140070','provider':'CorreiosService'}Este projeto utilizaAioHTTP- Requisições HTTPPoetry- Gerenciamento de dependências e publicaçãoPytest- Testes automatizadosAutorErick Duarte-Implementação inicial-erickodLicençaO projeto está disponível através da licença MIT - Consulte o arquivoLICENSE.mdpara mais detalhes.Menções importantesEste projeto foi inspirado na libcep-promise, criada pelo Felipe Deschamps.
Package: pycephes
pycephesName:pycephesWebsite:https://github.com/poliastro/pycephesAuthor:Juan Luis Cano Rodríguez <juanlu001@gmail.com>Version:0.1.0pycephes is a thin Python wrapper for theCEPHES mathematical libraryfrom Netlib, written usingCFFIand easy to use withnumba.
It is released under the MIT license, hence allowing commercial use.At present it only interfaces a single hypergeometric function, but
is provided here both as a proof of concept of the power of
CFFI + numba and as a support forpoliastro, a Python library
for interplanetary Astrodynamics. It is therefore a work in progress,
and all contributions are welcome (seeContributing).PerformanceThe motivation for creating this project is mainly achieving a good
performance. Time benchmarks are included in thetests/directory
which can be run usingpytest-benchmark.Preliminary studies suggest that pycephes can be nearly5 times fasteron average than the equivalent SciPy function.Requirementspycephes requires the following Python packages:NumPy, for basic array handlingCFFI, for interfacing with C codenumba, to make it compatible with upstream jitted functionsIn addition, the CEPHES mathematical library must be present on the system.InstallationThe easiest and fastest way to get the package up and running is to
install pycephes usingconda. This also installs
the CEPHES package as a dependency:$ conda install pycephes --channel poliastroIt can be installed from PyPI too, provided that the CEPHES library
is present on the system:$ pip install pycephesYou can alsodownload pycephes source from GitHuband type:$ pip install .Development installations are supported as well:$ pip install -e .WarningIt is recommended that younever ever use sudowith distutils, pip,
setuptools and friends in Linux because you might seriously break your
system [1][2][3][4]. Options arevirtualenvsorlocal installations.ContributingOne obvious area of improvement for the library consists in adding more
functions. Some other ideas:Create some script to generate the function headers so they don’t have
to be added manually.Use the@generated_jitfeatureintroduced in numba 0.24to
automatically trigger the appropriate function depending on the dimension
of the inputs, à la Julia.Potential contributors are encouraged to fork the repository and open a pull request.SupportYou can post support questions regarding pycephes on thepoliastro mailing listor thepycephes issue tracker.Licensepycephes is released under the MIT license, hence allowing commercial
use of the library. Please refer to the COPYING file.
Package: pycep-parser
pycepA parser forAzure Bicepfiles leveragingLark.Getting StartedRequirementsPython 3.7+Lark 1.1.2+Installpipinstall--upgradepycep-parserCurrent capabilitiesSupported capabilitiesNext milestonesFunctionsAnyArray (in progress)DateDeploymentFileLambda (in progress)LogicalNumericObjectResourceScopeStringOperatorsAccessorNumericConsidering1st class support of interpolated stringsOut-of-scopeBicep to ARM converter and vice versaContributingFurther details can be found in thecontribution guidelines.
Package: pyception
# pyception [![Build Status](https://travis-ci.org/jonathansp/pyception.svg?branch=master)](https://travis-ci.org/jonathansp/pyception) [![PyPI version](https://badge.fury.io/py/pyception.svg)](https://badge.fury.io/py/pyception) [![JSPDicas](https://img.shields.io/badge/jspdicas-approved-blue.svg)](https://mest.re)A more meaningful exception's collection for Python.Exceptions are important in Python. Throwing and handling it correctly avoid application stopping abruptly and make debug better.- Simple and lightweight library.- Collection inspired by frameworks and languages such as .NET, javasdk, ruby, php etc.Feel free to open a pull request! (Please, use [Jeremy Mack's](http://seesparkbox.com/foundry/semantic_commit_messages) commit style.)Simple usage:```pythonfrom pyception.security import PrivilegeNotHeldExceptionif not user.has_previlege('admin'):raise PrivilegeNotHeldException('Not allowed.')# instead of EnvironmentError or even Exception```Namespaces:```pythonimport pyception.applicationimport pyception.configurationimport pyception.collectionimport pyception.dataimport pyception.ioimport pyception.networkingimport pyception.securityimport pyception.systemimport pyception.text```
Package: pycerebro
Python client for RecordService implementations.DependenciesRequired:Python 3.4+six,bit_array,thriftpy >=0.3.9pip3installsixbit_array'thriftpy>=0.3.9'Optional:pandasfor conversion toDataFrameobjectsInstallationpip3installpycerebroTo verify:>>>importcerebro.cdas>>>cerebro.cdas.version()'0.8.0-beta3'Usagefromcerebroimportcontextctx=context()withctx.connect(host='localhost',port=12050)asconn:conn.list_databases()pd=conn.scan_as_pandas("cerebro_sample.sample")pdTo enable a connection to a server with token-authentication:fromcerebroimportcontextctx=context()ctx.enable_token_auth(token_str='my-token')withctx.connect(host='localhost',port=12050)asconn:conn.list_databases()To enable a connection to a server with kerberos-authentication:fromcerebroimportcontextctx=context()# Connecting to server principal 'cerebro/service@REALM'ctx.enable_kerberos('cerebro',host_override='service')withctx.connect(host='localhost',port=12050)asconn:conn.list_databases()
Package: pyceres
pyceresThis repository provides minimal Python bindings for theCeres Solverand the implementation of factor graphs for bundle adjustment and pose graph optimization.InstallationWheels for Python 8/9/10 on Linux, macOS 10+ (both Intel and Apple Silicon), and Windows can be installed using pip:pipinstallpyceresTo build from source, follow the following steps:Install the Ceres Solver followingthe official instructions.Clone the repository and build the package:gitclonehttps://github.com/cvg/pyceres.gitcdpyceres
python-mpipinstall.Alternatively, you can build the Docker image:dockerbuild-tpyceres-fDockerfile.Factor graph optimizationFactors may be defined in Python (seeexamples/test_python_cost.py) or in C++ with associated Python bindings.PyCOLMAPprovides the following cost functions inpycolmap.cost_functions:reprojection error for different camera models, with fixed or variable pose and 3D pointsreprojection error for multi-camera rigs, with fixed or variable rig extrinsicserror of absolute and relative posesSampson error for epipolar geometrySeeexamples/to use these factors.CreditsPyceres was inspired by the work of Nikolaus Mitchell forceres_python_bindingsand is maintained byPhilipp LindenbergerandPaul-Edouard Sarlin.
Package: pycerpt
pycerptpycerpt is a  command line utility for extracting highlighted text from PDFs.QuickstartGet the latest version withpip install pycerpt.pycerpt outputs to markdown as default. Use withexcerpt test.pdfor save to a file withexcerpt test.pdf > out.mdorexcerpt test.pdf out.md.Generating PDFsFor PDF generation additional dependencies are needed:pip install pycerpt[pdf].Usage:excerpt test.pdf out.pdf.
Package: pycert
CertificateThe cross-platform tool to get certificate info (including self-signed).InstallationFor most users, the recommended method to install is via pip:pip install pycertImportfrompycertimportCertClientUsageCommand from usual user:frompycertimportCertClientclient=CertClient(host="172.16.0.124")print(client.get_all_info())frompprintimportpprintfrompycertimportCertClientcert=CertClient('pypi.org')pprint(cert.get_all_info()){"version":"v3","valid_from":"2021-10-22T18:41:11","valid_to":"2022-11-23T18:41:10","is_valid":true,"is_self_signed":false,"issuer":{"C":"BE","O":"GlobalSign nv-sa","CN":"GlobalSign Atlas R3 DV TLS CA H2 2021"},"subject":{"CN":"www.python.org"},"signature_algorithm":"sha256","serial_number":"1B7C6CD03E8E071BE48C2B1A7994075","alternative_name":["DNS:www.python.org","DNS:*.python.org","DNS:docs.python.org","DNS:downloads.python.org","DNS:pypi.python.org"],"fingerprint":"CE1F8748D2DA0265B329F1DFD70047DCEF6CD8FB"}Useful linksRFC3280OpenSSL cheatsheetChangelog:unreleased1.0.3 (4.06.2022)Log name changed toCertClientLog format changed according other modules1.0.2 (17.04.2022)External logger added1.0.1 (14.12.2021)refactored "get_all_info": not it gets issuer and subject dynamicallyget_serial_number: returns upper hexadecimal without first bit nowis_self_signed: preliminary method added (can be changed in future)get_all_methods fixed: now it returns CertClient methodsget_alt_name refactored to get extension using oid1.0.0 (8.12.2021)New method added: get_fingerprint()get_all_info() extended with thumbprint, added params (fp_brief=True, signature_algorithm_brief=True)get_signature_algorithm() updated to return full or brief signature info0.0.12 (30.11.2021)example added0.0.1 (30.11.2021)initial commit
Package: pycerthole
PycertholeUnofficial python 3 library to manage data fromhttps://hole.cert.pl/Official documentation forhole.cert.plcan be foundhere.InstallYou can install directly fromPyPipip install pycertholeYou can also install from this repository:git clone http://github.com/TheArqsz/pycerthole.gitcd pycertholepip install .UsagefrompycertholeimportCertHolech=CertHole()all_domains=ch.get_data()In return you get a list ofDomainobjectsDomainDomain always contains following fields:domain_address- Domain address ofDomaininsert_date- Date when record was loaded to hole.cert.pl databaseis_blocked- Defines whether given domain is blockedBlocked domain- domain that is currently down (not malicious) due to actions from third parties (eg. ISP, authorities etc. )Optional field:delete_date- Defines when given domain was blocked and removed from listData typesData fromhole.cert.plis divided in 4 file types:csvjson(default)xmltxtBy default,jsonis used. Onlyjsonandcsvrecords return domains that are currently blocked and down. Those records contain exact date of deletion:delete_date.You can define type by passing argument toget_dataorget_raw_datamethods.ch.get_data(default_type='csv')[...Domain({'domain_address':'example.com','insert_date':datetime.datetime(2020,1,1,12,00,00),'delete_date':datetime.datetime(2020,2,2,2,22,39),'is_blocked':True}),...]ch.get_raw_data(default_type='xml')[...<pozycjarejestrulp="1"><adresdomeny>example.com</adresdomeny><datawpisu>2020-01-01T23:00:00</datawpisu></pozycjarejestru>,...]OthersGet list of blocked domains (domains that are blocked)ch.get_data_blocked(default_type='json')Supported types:json(default)csvCreditsAll credits for hole.cert.pl go to people fromcert.pl.This project is an unofficial wrapper for an amazing service thatcert.plprovides athole.cert.pl
Package: pycertmanager
Python Certificate ManagerModule to assist in the programmatic management ofPFXdigital certificates onWindowsoperating system.Working with A1 digital certificates (e-CPF and e-CNPJ), it is extremely common
to need to install and remove them from operating system, or even obtain some
information like expiration date or issuer of these objects. So this module
was made for provide these operations programmatically and easily.Table of contentInstallingRequirementsUsingExamplesHow does it worksSupportContributingSetup your environment (Windows PowerShell)RoadmapLicenseInstallingpipinstallpycertmanagerRequirementsThe module currently supports onlyWindowsoperating system and has been tested overPython >= 3.10.UsingThe main entity of the module is theCertificateclass which provides the
methods for manipulating certificates within the operating system and
obtaining relevant information from them.ExamplesfrompycertmanagerimportCertificate# creating certificate objectcertificate=Certificate("mycertificate.pfx","123456")# installing certificate on systemcertificate.install()# getting a list with certificate subject datasubject_data=certificate.get_subject_data()# getting certificate expiration dateexpiration_date=certificate.get_expiration_date()# getting certificate expiration dateissue_date=certificate.get_issue_date()# removing a certificate# note that it is a class method and 'pycertmanager.test' is the# Common Name (CN) of the certificate you want to removeCertificate.remove("pycertmanager.test")How does it worksIn short, some methods (install and remove) callsPowerShell cmdletsthrough subprocess built-in module while the remaining methods usescryptographypackage primitives.SupportFound a problema? Please open anIssuedescribing it or aPull Requestif
you know how to fix it. Make sure to write thetestsfrom your code.ContributingPull requests are welcome. For major changes, please open an issue first to
discuss what you would like to change. Reinforcing, make sure to write tests from your code.Setup your environment (Windows PowerShell)# clone this repositorygitclonehttps://github.com/eldersantoss/pycertmanager.git# create and activate virtual environmentcdpycertmanagerpython-mvenvvenv&venv/Scripts/Activate# install dependenciespipinstall-rrequirements.txt# run testspython-munittestRoadmapImplement Linux support:the intention is to make this module
cross-platform.LicenseThis project is licensed under the terms of theMIT License.
Package: pyCESM
================pyCESM================----------Python package for interactive work with the Community Earth System Model----------Author--------------| **Brian E. J. Rose**| Department of Atmospheric and Environmental Sciences| University at Albany| brose@albany.eduInstallation----------------``python setup.py``or, if you are developing new code``python setup.py develop``About pyCESM--------------Currently consists of two parts:- Python / numpy implementations of some of thethermodynamic routines (e.g. saturation vapor pressure and specific humidity)used by the CAM atmospheric model.- A Python interface for working with CAM output that automates some grid-aware diagnostic calculations.This functionality is built on top of xarray_.Based on (and tested with) version 1.2.1 of CESMLicense---------------This code is freely available under the MIT license.See the accompanying LICENSE file... _xarray: http://xarray.pydata.org
Package: pyCEURspt
ceur-sptRESTFul Single Point of Truth Server for CEUR-WSIntroductionCEUR-WSCEUR Workshop Proceedings (CEUR-WS.org)
Free Open-Access Proceedings for Computer Science Workshopshttps://ceur-ws.org/Semantification of CEUR-WShttp://ceur-ws-browser.bitplan.comhttp://ceur-ws.bitplan.comSingle Point of Truthhttp://ceurspt.wikidata.dbis.rwth-aachen.de/index.htmlhttp://ceurspt.wikidata.dbis.rwth-aachen.de/docs
Package: pycewise
PycewiseInstallationpipinstallpycewiseOptional installation requirementsThe main functionnality of this package (computing a segmented linear regression) can be used without any third-party code.For additional features, the following packages should be installed (pip install <package_name>):numpystatsmodelsjupytermatplotlibgraphvizcoveragemockpalettableUsageBasic example:frompycewiseimport*importpandasdf=pandas.read_csv('test_data/memcpy_small.csv')reg=compute_regression(df['size'],df['duration'],mode='log')print(reg)For more advanced usage, see thenotebooks.
Package: pycextensions
Python C Extensions Example用于介绍一个python C extension的示例，用于熟悉其中流程，并了解其与poetry c extension中的区别和各自优势。前言编写日期：2023/03/23本项目就是使用setuptools来实现python c extension的示例，并通过cibuildwheel来进行linux，windows和macos全平台打包和发包的演示。据2022年的统计可知，目前比较流行的Python包管理工具为setuptools，poetry和conda，当然还有flit等其它工具。我比较常用setuptools和poetry，poetry在易用性上比较有优势，其理念也比较符合python未来的趋势，其使用pyproject.toml文件，以一个文件来统一管理项目的所有信息，从而提高项目的可维护性和可读性。但是很多工具的官方文档中都或多或少不太建议优先在pyproject.toml中配置，还有在含有c extension的情况下poetry和其它第三方包管理器就无法快速且优雅地实现，比如poetry官方文档现在还没有python c extension的示例，不过在其ISSUES中提到会尽快支持。所以，本项目就以setuptools来实现标准的包管理的一个示例。前提准备windows，linux或macos上配置make工具。项目说明本项目就是一个使用setuptools实现的Python C Extensions的示例，调用了c中的fprintf方法：将格式化的数据输出到指定的文件中。具体如何使用此库，在测试文件中已经列举了详细的使用方法。可以通过make test测试，或者手动安装本库后运行示例中的方法。也用于介绍项目工程化的一个简单示例，一些github workflow，代码检测，格式化和测试覆盖率等工具的使用。运行说明直接使用make build_dist即可运行打包，安装wheel并跑通测试。当然也可以单独使用指令，比如：make clean:卸载本库，并清理测试文件，打包文件等。make test:跑测试。其它命令，比如make install,make build不再说明。
Package: pycf3
pycf3 - Cosmicflows Galaxy Distance-Velocity Calculator client for PythonDescriptionpycf3 is a Python client for theCosmicflows-3 Distance-Velocity Calculator,
andNAM Distance-Velocity CalculatorCode Repository & Issueshttps://github.com/quatrope/pycf3Licensepycf3 is underThe BSD 3 LicenseThe BSD 3-clause license allows you almost unlimited freedom with the software
so long as you include the BSD copyright and license notice in it
(found inFulltext).Basic InstallExecute$pipinstallpycf3Development InstallClone this repo and install with pip$gitclonehttps://github.com/quatrope/pycf3.git$cdpycf3$pipinstall-e.Quick Usage>>>importpycf3>>>cf3=pycf3.CF3()>>>result=cf3.calculate_distance(velocity=9000,glon=283,glat=75)>>>print(result.observed_velocity_)9000.0>>>result.observed_distance_array([136.90134347])For more information, read thetutorial in the
documentation.CitationIf you use the results of this work in your research or other applications,
please citeKourkchi et al. 2020, AJ, 159, 67Please acknowledge pycf3 in any research report or publication that
requires citation of any author's work. Our suggested acknowledgment
is:The authors acknowledge the pycf3 project that contributed to the
research reported here. <https://pycf3.readthedocs.io/>ABOUT THE DATAAll data exposed by pycf3 belongs to the projectCosmicflows-3 Distance-Velocity Calculator
(http://edd.ifa.hawaii.edu/CF3calculator/) Copyright (C) Cosmicflows
Team - The Extragalactic Distance Database (EDD)Please cite:Kourkchi, E., Courtois, H. M., Graziani, R., Hoffman, Y., Pomarede,
D., Shaya, E. J., & Tully, R. B. (2020). Cosmicflows-3: Two
Distance--Velocity Calculators. The Astronomical Journal, 159(2), 67.BibText@ARTICLE{2020AJ....159...67K,author={{Kourkchi}, Ehsan and {Courtois}, H{\'e}l{\`e}ne M. and{Graziani}, Romain and {Hoffman}, Yehuda and {Pomar{\`e}de}, Daniel and{Shaya}, Edward J. and {Tully}, R. Brent},title="{Cosmicflows-3: Two Distance-Velocity Calculators}",journal={\aj},keywords={590, 1146, 902, 1968, Astrophysics - Cosmology andNongalactic Astrophysics, Astrophysics - Astrophysics of Galaxies,Astrophysics - Instrumentation and Methods for Astrophysics},year=2020,month=feb,volume={159},number={2},eid={67},pages={67},doi={10.3847/1538-3881/ab620e},archivePrefix={arXiv},eprint={1912.07214},primaryClass={astro-ph.CO},adsurl={https://ui.adsabs.harvard.edu/abs/2020AJ....159...67K},adsnote={Provided by the SAO/NASA Astrophysics Data System}}Short video descriptionAuthorsJuan BC -jbcabral@unc.edu.comBruno SanchezMartin BeroizEhsan Kourkchi.IATE-CIFASISThis project is part of theQuatroPescientific tools.
Package: pycfalias
pycfaliasEasy Cloudflare email alias managementInstallationInstall via python pippip install pycfaliasConfigure either via configuration file or environment variablesexport CF_FORWARD_EMAIL=$your_forward_email
export CF_TOKEN=$your_cloudflare_token
export CF_ZONE_ID=$your_cloudflare_zone_idORCreate a file in your home directory called.pycfalias.toml(note the dot)"CF_FORWARD_EMAIL" = "$your_forward_email"
"CF_TOKEN" = "$your_cloudflare_token"
"CF_ZONE_ID" = "$your_cloudflare_zone_id"(back to top)UsageList email aliasespycfalias -l [--list]Create an email aliaspycfalias -c [--create]Remove existing email aliaspycfalias -r [--remove](back to top)AcknowledgmentsInspiration -cf-alias