Saravanan666/pypi-org huggingface dataset:
Package: pixqrcode
Pix QRCode - PythonVersao:1.0Biblioteca para a geração de codigos QR (BRCode como chamados na documentação do BACEN) a fins de facilitar a exibição para pagamentos ao consumidor.O que é pixPix é o meio de pagamento eletrônico instantâneo, gratuito e com segurança, do Brasil. A iniciação de um Pix para uma pessoa física é gratuita.WikipediaIsenção de responsabilidadeOs QR codes não foram testados aos bancos, sempre antes de transferir verifique se as informações estão corretas. O autor e contribuidores se isenta de qualquer responsabilidade pela exatidão e integridade das informações divulgada.Documentação de implementação BACEN - Banco Central do BrasilManual BRCodeEspecificações técnicas e de negócio do ecossistema de pagamentos instantâneos brasileiroGithub BacenNÃO EXISTE NENHUMA INTEGRAÇÃO COM BANCOSExemplo basicoImporte a biblioteca do pippip install pixqrcodeImporte a classefrom pixqrcode import PixQrCodee defina os parametros como abaixoObrigatorioname = Nome do destinatariomobile (Chave PIX) = Telefone do destinatarioEm Breve mais chavescity = Cidade de remetenteOpcionalamount = Valor a ser enviadoValores serão sempre contados com 3 casas decimais e tem todos os digitos não numericos removidos, exemplos abaixoR$ 1,00 = 100R$ 10,00 = 1000reference_label = Código da transferência. Codigo não obrigatorio mais pode auxiliar em casos como ecommerce e vendas diretas por Pixpix = PixQrCode("Fulano De Tal", "(70) 97070-7070", "Brasilia", "100")Retorno do QRCode e codigo BRCodeseguimos com o objeto de cima definido iremos chamar os metodos e suas funçõesMetodosis_valid()Verifica se todos os campos inseridos são validos e pode seguir com a geração do QRCode. Retorna um valor booleanexport_base64()Retorna direto em formato base64 tipo imagem PNG (Portable Network Grapich) para ser renderizado dentro de uma tag img HTML ou ser transportado por uma API e demais usos.pix.export_base64()

<img src='{pix_image}' alt='qrcode pagamento'/>save_qrcode(folder, filename, **kwargs)pix.save_qrcode("/pixs","pix-fulano")Caso queira você pode salvar o codigo gerado em uma pasta com um nome especifico para ter o codigo.Não precisa especificar o formato do arquivo sempre será PNGPode retornar o valor dentro BufferIO para ser novamente processado.A geração do QRCode é feita com a bibliotecaPillowentão você pode utilizar para deixar seu QRCode ainda mais personalizado passando os parametros por **kwargsgenerate_code()Irá retornar a string com a qual foi gerado o QRCode contendo os valores todos em suas posições como descrito na documentação do BACENExemplosContem mais exemplos para facilitar a sua implementaçãoAPIDockerfile - port 8000ConsoleEm breve mais...Toda contribuição é bem vinda!
Package: pixqrcodegen
PIXQRCODEGENMódulo em PythonEste módulo foi criado para Python com compatiblidade para diversas chaves Pix para gerar a Paylod do Pix.O que é Pix?Pix é um meio de pagamento eletrônico instantâneo e gratuito oferecido peloBanco Central do Brasila pessoas físicas e jurídicas, sendo o mais recente meio de pagamento do Sistema de Pagamentos Brasileiro.O que é Pix Payload?A Payload do Pix nada mais é que um conjunto de informações necessárias para pagamentos e transferências bancárias que necessita seguir as regras e estar bem formatada para ter sucesso no pagamento ou transferência.NestaAPI, do próprioBanco Centra do Brasil, você poderá olhar com mais detalhes como funciona uma Payload Pix.Modo de uso# Importando o módulo
from pixqrcodegen import Payload

# Parâmetros necessários
payload = Payload(nome, chavepix, valor, cidade, txtId)

# Chamando a função responsável para gerar a Payload Pix e o QR Code
payload.gerarPayload()

#####################################################################

"""Exemplo com dados fictícios"""

payload = Payload('Nome Sobrenome', '12345678900', '1.00', 'Cidade Ficticia', 'LOJA01')

payload.gerarPayload()

"""Resultado"""

00020126330014BR.GOV.BCB.PIX01111234567890052040000530398654041.005802BR5914Nome Sobrenome6015Cidade Ficticia62100506LOJA016304C8E4

"""Observação"""

QR Code é gerado após a criação da Payload do Pix e salvo no diretório de desenvolvimento.ImportanteNenhum dos dados podem ter caracteres especiais como acentos ou "ç"e os valores monetários devem ser dividos por ponto (.) e não vírgula (,).Exemplo:Valor incorreto: 50,00Valor correto: 50.00Os valores monetários podem ser digitados tanto com ponto (.) quanto com vírgula (,).Exemplo:Valores corretos: 50.00 ou 50,00
Package: pixrypt-python
The Python Backend for thePixrypt Text to Pixel Encryption and Decryption system.This projects provides the backend encryption and password generation and decryption with provided password for
Pixrypt image generation and reading.The source for this project is available here.All other Pixrypt base their image encoding and decoding logic on this module.The Project is structured as follows:Encoder - Contains the logic for converting plain text to a Pixrypt image and providing a passphrase.Decoder - Contains the logic for converting a Pixrypt image to plain text with a provided passphrase.
Package: pixsaw
PixsawCuts an image up into multiple pieces by following pixel lines that contrast
with targeted piece color.Mostpixels are kept in the process since very fine
saw blades are used.Try out by running thepixsaw.shscript that will prompt for necessary options
and run pixsaw inside a docker container. It will use the files in the examples
directory by default.# Build and run using docker./pixsaw.shInstallingRequires:PillowInstall with pip in editable mode for developing and use virtualenv to isolate
python dependencies::python3-mvenv.venvsource.venv/bin/activate
pipinstall-e.UsageRunning thepixsawscript will show some help.  It basically needs a
path to a directory to store the generated files, an image that shows where to
cut, and the image that should be cut into pieces.Examplemkdirtmp-small-puzzle-example
pixsaw--dirtmp-small-puzzle-example--linesexamples/small-puzzle-lines.pngexamples/320px-White_Spoon_Osteospermum.jpgImage from:http://en.wikipedia.org/wiki/File:White_Spoon_Osteospermum.JPGThe output (combined into one file with glue to better show it):ContributingPlease contact me or create an issue.Any submitted changes to this project require the commits to be signed off with
thegit command option
'--signoff'.
This ensures that the committer has the rights to submit the changes under the
project's license and agrees to theDeveloper Certificate of
Origin.LicenseGNU Lesser General Public License v3.0MaintenanceWhere possible, an upkeep comment has been added to various parts of the source
code. These are known areas that will require updates over time to reduce
software rot. The upkeep comment follows this pattern to make it easier for
commands like grep to find these comments.Example UPKEEP comment has at least a 'due:' or 'label:' or 'interval:' value
surrounded by double quotes (").Example-> # UPKEEP due: "2022-12-14" label: "an example upkeep label" interval: "+4 months"
Package: pixstem
pixStemWebpage:https://pixstem.orgWebpage (development version):https://gitlab.com/pixstem/pixstem/builds/artifacts/master/file/public_development/index.html?job=pages_developmentPython library for analysing pixelated scanning transmission electron microscopy (STEM) datasets.
Pixelated STEM is using a 2D detector to image the convergent beam electron pattern generated by the electron beam after passing through a material.The library has implemented several common functions used with these types of datasets, like radial integration and center of mass.
These are implemented as HyperSpy-type signals, where these new signals both inherit the old methods and add many new ones.InstallingThe easiest way is installing using with pip:pip3installpixstemUsingimportnumpyasnpimportpixstem.apiaspss=ps.PixelatedSTEM(np.random.random(size=(5,5,10,10)))s_r=s.radial_integration()
Package: pixtalks
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: pix-utils
PIX UtilsMódulo para validação de chaves PIX e geração de chaves PIX copia-e-colaInstalaçãovocê pode instalar o módulo usando o comando:pipinstallpix-utilsRecursosVeja alguns dos recursos desta biblioteca:Validação de chaves PIX.Valida o tipo de chave chamando o métodovalidate.frompix_utilsimportCPF,CNPJ,Email,Phone,Randomprint(Phone().validate('11991234567'))# Trueprint(Email().validate('example@example.com'))# Trueprint(CPF().validate('12345678901'))# Falseprint(CNPJ().validate('06.990.590/0001-23'))# Trueprint(Random().validate('12345678-1234-1234-1234-123456789012'))# TrueFormatação de chaves PIX para CPF, CNPJ e telefone.Máscara chaves PIX de CPF, CNPJ e telefone chamando o métodomask.frompix_utilsimportCPF,CNPJ,Phoneprint(CPF().mask('11438374798'))# 114.383.747-98print(Phone().mask('11991234567'))# (11) 99123-4567print(CNPJ().mask('06990590000123'))# 06.990.590/0001-23Geração de códigos para pagamento PIX estático.Gera códigos de pagamento estáticos de PIX copia-e-cola.frompix_utilsimportCodeKEY='11438374798'# Chave PIX.NAME='John Doe'# Nome do dono do PIX.CITY='Sao Paulo'# Cidade do dono do PIX. Lembre-se de não usar acentos.VALUE=10.00# Valor da transação.INDENTIFY='12345678'# Indentificador da transação (opcional).print(Code(key=KEY,name=NAME,city=CITY,value=VALUE,identifier=INDENTIFY))# 00020126330014BR.GOV.BCB.PIX011111438374798520400005303986540510.005802BR5908John Doe6009Sao Paulo621205081234567863046A00Indentificar e formatar chave PIXAutomáticamente Indentifica o tipo de chave PIX e a formata.frompix_utilsimportTypeprint(Type('11438374798'))# (CPF, '114.383.749-98')print(Type('11991234567'))# (Phone, '(11) 99123-4567')print(Type('06990590000123'))# (CNPJ, '06.990.590/0001-23')print(Type('12345678-1234-1234-1234-123456789012'))# (Random, '12345678-1234-1234-1234-123456789012')print(Type('example@example.com'))# (Email, example@example.com')Você pode ver exemplos de usosaquiLicençaMIT Licence
Package: pixycamev3
pixycamev3 - Python package for Pixy2 and LEGO EV3 controllerThis package contains an easy to use Python3 API to use the Pixy2 camera with
the LEGO Mindstorms EV3.RequirementsPixy2 or Pixy2.1 for LEGO Mindstorms EV3 camera.LEGO Mindstorms EV3 brick, running the ev3dev operatingsystem.This software is tested with the latest official release of ev3dev
(ev3dev-stretch-ev3-generic-2020-04-10).Installationpython3 -m pip install pixycamev3TutorialAn extensive tutorial on how to use pixycamev3 can be found onPixy2's wiki.Useful linksCharmed LabshomepagePixy2 for LEGO Mindstorms EV3wikipixycamev3tutorialpixycamev3sourceev3devhomepage2022 Charmed Labs,www.charmedlabs.com
Package: piyush
#gituploaderA Python package to upload a local repository to Github from your Local Machine without
writing  git commands in shellUsage:This package will upload your repository from your local machine to github
by  using github URL of your repository.Package needs 4 parameters:1.gitrepositoryurl :  URL of new repository created on github2.scriptname :  Name of the script in which this package is being used3.Username : github username4.Email:  github emailUser need to run ascript of this package in a directory from where local Repository are to be uploaded to githubExample:gitrepositoryurl = 'https://github.com/user/project'scriptname = 'setup.py'gituploader.push('githubUsername', 'githubEmail')Version 1.0.1:This version is compatible with Windows OS onlyNext release will focus on other OSRequirement:Python version>=3.6Git has to be installed in  local machine as this package is based on Git
Package: pizaa
A python image to ascii art library.
Its usage is simple:itaa(img[, rescale, mode, output, use_spaces, invert, enlarge]): image to ascii art function. If mode is 'save' save's text to output, else returns it_itaa(img[, rescale, mode, output, invert, enlarge]): old itaa function, with old 25 symbols pallete (new one have 51 symbols)restore_grayscale(img[, output]): restores grayscale from text, generated by itaa function
Package: pizzapi
DescriptionThis is a Python wrapper for the Dominos Pizza API.It’s a port ofthe pizzapi node.js modulewritten byRIAEvangelist.Quick StartPull the module into your namespace:frompizzapiimport*First, construct aCustomerobject and set the customer’s address:customer=Customer('Donald','Trump','donald@whitehouse.gov','2024561111')address=Address('700 Pennsylvania Avenue NW','Washington','DC','20408')Then, find a store that will deliver to the address.store=address.closest_store()In order to add items to your order, you’ll need the items’ product codes.
To find the codes, get the menu from the store, then search for items you want to add.
You can do this by asking yourStoreobject for itsMenu.menu=store.get_menu()Then searchmenuwithmenu.search. For example, running this command:menu.search(Name='Coke')Should print this to the console:20BCOKE    20oz Bottle Coke®        $1.89
20BDCOKE   20oz Bottle Diet Coke®   $1.89
D20BZRO    20oz Bottle Coke Zero™   $1.89
2LDCOKE    2-Liter Diet Coke®       $2.99
2LCOKE     2-Liter Coke®            $2.99After you’ve found your items’ product codes, you can create anOrderobject add add your items:order=Order(store,customer,address)order.add_item('P12IPAZA')# add a 12-inch pan pizzaorder.add_item('MARINARA')# with an extra marinara cuporder.add_item('20BCOKE')# and a 20oz bottle of cokeYou can remove items as well!order.remove_item('20BCOKE')Wrap your credit card information in aPaymentObject:card=PaymentObject('4100123422343234','0115','777','90210')And that’s it! Now you can place your order.order.place(card)Or if you’re just testing and don’t want to actually order something, use.pay_with.order.pay_with(card)
Package: pizza-shop
Pizza Shop - Command Line GamePlay as a pizza shop owner and prepare for the unexpected.MotivationI built this game to practice Python and creating PyPi packages.Screen ShotsTechnologiesPythonNative ModulesInstall and PlayAvailable on PyPipip install pizza-shop
pizza-shopDevelopmentSource on GitHubgit clone https://github.com/JacksonElfers/pizza-shop.git
Package: pjax
PJAXDo you just want probability distributions for JAX without all the added baggage oftensorflow-probabilityornumpyro?Do you have some weird distribution not available in the above orscipy.stats?ThenPJAXis for you. Lightweight probability distributions using JAX backend. That's it.importjaximportjax.numpyasjnpfrompjaximportdistributionsa=jnp.asarray([4.3,0.8])b=jnp.asarray([1.2,7.3])dist=distributions.Gamma(a,b)x=jnp.asarray([0.4,0.5,0.6,0.7])dist.log_pdf(x)key=jax.random.PRNGKey(42)dist.sample(key,shape=(100,))
Package: pjbcma
Bayesian Cognitive Modeling withpyjgagsassistantThis is a project to port the code examples in Lee and Wagenmakers' 2013 textbookBayesian Cognitive Modeling: A Practical Coursefrom MATLAB into Python, using thepyjagspackage for interfacing Python code with theJAGSGibbs sampling application.The main contribution is the modulepjbcmassistant, which contains convenience classesModelHandlerandSampleHandlerfor easily interfacing withpyjags, and for performing basic analysis on the model samples it produces.Quick Start:The notebookPyJAGS-BCM Usage Guideprovides a demonstration and overview of how to use the module for building and analyzing models.See thefull documentationfor details on all methods provided by the module.NOTE:In addition to dependencies listed in requirements.txt, this module requires thatJAGS(which is not a Python package) be successfully installed on your system prior to configuringpyjags. See theJAGS websiteand thepyjags installation instructionsfor details.
Package: pjbcma-icushman
Bayesian Cognitive Modeling withpyjgagsassistantThis is a project to port the code examples in Lee and Wagenmakers' 2013 textbookBayesian Cognitive Modeling: A Practical Coursefrom MATLAB into Python, using thepyjagspackage for interfacing Python code with theJAGSGibbs sampling application.The main contribution is the modulepjbcmassistant, which contains convenience classesModelHandlerandSampleHandlerfor easily interfacing withpyjags, and for performing basic analysis on the model samples it produces.Quick Start:The notebookPyJAGS-BCM Usage Guideprovides a demonstration and overview of how to use the module for building and analyzing models.See thefull documentationfor details on all methods provided by the module.NOTE:In addition to dependencies listed in requirements.txt, this module requires thatJAGS(which is not a Python package) be successfully installed on your system prior to configuringpyjags. See theJAGS websiteand thepyjags installation instructionsfor details.
Package: pjc
F.A.Q.Q: Что это?A: Это программка для создания иерархии папок.Q: Зачем это нужно?A: Я использую VsCode, а в ней нет возможности создать проект “в один клик”.Установкаpip install projectcreatorВ связи с тем, что скрипт устанавливается в~/.local/bin, эту папку необходимо включить в переменную $PATH, поэтому необходимо выполнить командуexport PATH=/home/username/.local/bin:$PATH.После проделанных действий программа готова к использованию.НастройкаВся настройка осуществляется в папке~/.config/project_creator. Конфиги представляет из себя json файлы.Для использования программы необходимо создать в этой папке файл, с тем названием, которое вы хотели бы использовать при создании проекта.В записиtypesперечисляются языки.В записиpathперечисляются папки с файлами.Вfilesперечисляются файлы с содержимым.Вcommandsперечисляются команды, которые надо выполнить после создания проекта.ИспользованиеСоздайте конфиг~/.config/project_creator/<name_config>Создайте папку проекта, в которой хотите хотите создать инфраструктуру.Введите в терминалеcreate_project <name_config>Пример конфига{"path":{"code":{"test":{"test":{}},"re":{}},"tmp":{},"old":{}},"files":{".gitignore":[".gitignore","old/","tmp"],"main.py":["#!/usr/bin/python3","","def main():","   print('Hello world')","","if __name__ == '__main__':","   main()"]},"commands":["touch README.md","chmod +x main.py","git init","git add .","git commit -m \"Новый проект\""]}
Package: pjconf
pjconfA simple configuration interface to use JSON files as configuration files.InstallationPJC is installed via pip.pipinstallpjconfUsageLoading configuration is straightforward, just import and point to your json file.importpjconfaspjc# Load a json file as a configuration dictionary.config=pjc.load_config('config.json')# or, load a configuration file with an optional default set of configuration elsewhereconfig=pjc.load_config('defaults.json','config.json',ignore_missing=True)Configuration files are loaded in a cascading sequence, multiple positional filepaths are loaded and override/update the previous keys. Settingignore_missing=Truewill allow for a flexible resolve of optional configuration; disabling it will raise aFileNotFoundErroron the first file it can't find.Accessing configuration uses aget()method, with a cool dot-recursive syntax, optional defaults and runtime type-casting.Let's assume the following configuration file.{"opt1":true"opt2":0.1"opt3":{"subopt1":"hello"}}You can use the following syntax to access your configuration.# Access a simple optionopt1=config.get('opt1')# True# Access a recursive (nested) optionsubopt1=config.get('opt3.subopt1')# "hello"# Try to access a missing option, but provide a defaultmissing_opt=config.get('missing',default=True)# True# Runtime type-castingopt2asint=config.get('opt2',cast=int)# 0For the last example, thecastargument takes a callable with a single parameter - you can be as simple or as complicated (i.e. lambdas or defined functions) as you like.
Package: pjdtextblob
Homepage:https://textblob.readthedocs.io/TextBlobis a Python (2 and 3) library for processing textual data. It provides a simple API for diving into common natural language processing (NLP) tasks such as part-of-speech tagging, noun phrase extraction, sentiment analysis, classification, translation, and more.fromtextblobimportTextBlobtext='''
The titular threat of The Blob has always struck me as the ultimate movie
monster: an insatiably hungry, amoeba-like mass able to penetrate
virtually any safeguard, capable of--as a doomed doctor chillingly
describes it--"assimilating flesh on contact.
Snide comparisons to gelatin be damned, it's a concept with the most
devastating of potential consequences, not unlike the grey goo scenario
proposed by technological theorists fearful of
artificial intelligence run rampant.
'''blob=TextBlob(text)blob.tags# [('The', 'DT'), ('titular', 'JJ'),#  ('threat', 'NN'), ('of', 'IN'), ...]blob.noun_phrases# WordList(['titular threat', 'blob',#            'ultimate movie monster',#            'amoeba-like mass', ...])forsentenceinblob.sentences:print(sentence.sentiment.polarity)# 0.060# -0.341TextBlob stands on the giant shoulders ofNLTKandpattern, and plays nicely with both.FeaturesNoun phrase extractionPart-of-speech taggingSentiment analysisClassification (Naive Bayes, Decision Tree)Tokenization (splitting text into words and sentences)Word and phrase frequenciesParsingn-gramsWord inflection (pluralization and singularization) and lemmatizationSpelling correctionAdd new models or languages through extensionsWordNet integrationGet it now$ pip install -U textblob
$ python -m textblob.download_corporaExamplesSee more examples at theQuickstart guide.DocumentationFull documentation is available athttps://textblob.readthedocs.io/.RequirementsPython >= 2.7 or >= 3.5Project LinksDocs:https://textblob.readthedocs.io/Changelog:https://textblob.readthedocs.io/en/latest/changelog.htmlPyPI:https://pypi.python.org/pypi/TextBlobIssues:https://github.com/sloria/TextBlob/issuesLicenseMIT licensed. See the bundledLICENSEfile for more details.
Package: pJITAI
mDOT pJITAI (Just-In-Time Adaptive Intervention) interface libraryExampleimportpJITAI# Create a new session to an existing API servicesession=pJITAI.Client(server='http://localhost/api',service_id='028fa04c-943d-4ae3-9885-55b4bdf4337e',service_token='e6e74d36-a3e4-4631-b077-4fdd703636f2')# Upload some datadata={'decision':1,'decision_timestamp':'2022-06-01T08:30:00-05:00','proximal_outcome':45,'proximal_outcome_timestamp':'2022-06-01T09:00:00-05:00','timestamp':'2022-06-01T09:05:00-05:00','user_id':'user_0','values':[{'name':'step_count','value':229}]}try:data_to_upload=pJITAI.DataVector.from_dict(data)session.upload(data_to_upload)print(data_to_upload)exceptExceptionase:print(f'Upload Exception:{e}')# Ask the server to generated a decisiondata={'timestamp':'2022-06-01T08:30:00-05:00','user_id':'user_0','values':[{'name':'step_count','value':24}]}try:decision=pJITAI.DecisionVector.from_dict(data)session.decision(decision)print(decision)exceptExceptionase:print(f'Upload Exception:{e}')# Have the server update the model parameters based on already uploaded datatry:session.update()exceptExceptionase:print(f'Upload Exception:{e}')Build and releasebumpverupdate-p

python3-mbuild

twinecheckdist/*
twineuploaddist/*