Saravanan666/pypi-org huggingface dataset:
Package: pydeezer-asy
deezer-asyAsynchronous version of thepy-deezermodule
At the moment, the functionality does not completely repeat the original libraryDifferencesThis version is asynchronous. Otherwise, it repeats the arguments of the original library.Last update2.2.5Simplified module initializationChanged response type ofdownload_trackfunction:{'track': path, 'lyric': path or None}Addedhttpxsupport to replaceaiohttp*. Specify during initialization:DeezerAsy(ARL, _httpx=True)Minor changes regarding cookies(Not sure but queries should work in both cases)Fixed tags (load cover)The module has two versions. Changes in both deal with bugs withaiohttp.MoreWhat works?Getting information about albums, playlists, artists, tracks (their tags).Downloading tracks.What needs to be doneAdding tags to .flac.(So вЂ‹вЂ‹far, idling)Installationpipinstallpydeezer-asyUsageGeneralYou can pass `loop` as an argument, or leave None
If you want logging, pass the `logger` as an argumentDeezerAsy- _httpx parameter during initialization. Replacing the module for asynchronous requests withhttpxaioDeezer- Theaio_sessionparameter on initialization. Pass an instance of aiohttp.ClientSession into itUsage DeezerAsyfromdeezer_asyimportDeezerAsyimportloggingimportasyncioARL="edit this"loop=asyncio.get_event_loop()logging.basicConfig(level=logging.INFO,format="%(asctime)s[%(levelname)s]%(message)s",datefmt="%Y-%m-%d%H:%M:%S")logger=logging.getLogger("main_logger")deezer=DeezerAsy(ARL,loop=loop,logger=logger,_httpx=True)asyncdefmain():search_data=awaitdeezer.search_tracks('post malone rockstar',1)track_data=awaitdeezer.get_track(search_data[0]['id'],False)download=awaitdeezer.download_track(track_data['info'],'./',with_lyrics=True,with_metadata=True)print(download)# Output: {'track': '.\\rockstar (feat. 21 Savage).mp3', 'lyruc': '.\\rockstar (feat. 21 Savage).lrc'}awaitdeezer.close_session()# Closing sessionif__name__=="__main__":loop.run_until_complete(main())Usage aioDeezerfromdeezer_asyimportaioDeezerimportloggingimportasyncioARL="edit this"loop=asyncio.get_event_loop()aio_session=aiohttp.ClientSession()logging.basicConfig(level=logging.INFO,format="%(asctime)s[%(levelname)s]%(message)s",datefmt="%Y-%m-%d%H:%M:%S")logger=logging.getLogger("main_logger")deezer=aioDeezer(ARL,loop=loop,logger=logger,aio_session=aio_session)asyncdefmain():search_data=awaitdeezer.search_tracks('post malone rockstar',1)track_data=awaitdeezer.get_track(search_data[0]['id'],False)download=awaitdeezer.download_track(track_data['info'],'./',with_lyrics=True,with_metadata=True)print(download)# Output: {'track': '.\\rockstar (feat. 21 Savage).mp3', 'lyruc': '.\\rockstar (feat. 21 Savage).lrc'}awaitdeezer.close_session()# Closing sessionif__name__=="__main__":loop.run_until_complete(main())
Package: pydeface
PyDefaceA tool to remove facial structure from MRI images.Dependencies:PackageTested versionFSL6.0.3Python 33.7.3NumPy1.21.6NiBabel4.0.1Nipype1.5.1Installationpip install pydefaceorgit clone https://github.com/poldracklab/pydeface.git
cd pydeface
python setup.py installHow to usepydeface infile.nii.gzAlso see the help for additional options:pydeface --helpLicensePyDeface is licensed underMIT license.
Package: py-de-familia
É Essa Biblioteca Que Você Queria???py-de-famíliaé uma CLI deliciosa, criada no intuíto de relaxar os Programadores de Família.Nela é possível ouvir diretamente do seu terminal, as frases relexantes do mestre Jailson Mendes e de outros personagens do universo PDF.Featuresde FamíliaAtualmente, é possível apreciar os aúdios relexantes dos seguintes personagens de família:Personagem de FamíliaFilmes de FamíliaBiografia de FamíliaJailson Mendes de FamíliaTrilogia Pai de Famíliahttps://desciclopedia.org/wiki/Pai_de_Fam%C3%ADliaKauan Desu de FamíliaTrilogia Pai de Famíliahttps://desciclopedia.org/wiki/Kauan_DesuPaulo Guina de FamíliaTrilogia Pai de Famíliahttps://desciclopedia.org/wiki/Paulo_GuinaBoliviano de FamíliaPrincesa Demacol e o Bolivianohttp://desciclo.pedia.ws/wiki/BolivianoInstalação# Instalação da biblioteca de familia$pip3installpy-de-familia# Habilitando o autocomplete de familia$eval"$(_PY_DE_FAMILIA_COMPLETE=source_bashpy-de-familia)"ExecuçãoTODOEstrutura do Projeto de Família├── CODE-OF-CONDUCT-DE-FAMILIA.rst  # Código de conduta de Família
├── docs                            # Documentação de Família
│   └── ...
├── LICENSE-DE-FAMILIA              # Descrição da Licença APAICHE-DE-FAMILIA-2.0
├── Makefile                        # Makefile de Família para extrair audios de família do youtube
├── poetry.lock                     # Dependencias de Família Versionadas
├── py_de_familia
│   ├── ativos-de-familia
│   │   ├── boliviano               # Audios do Boliviano de Família
│   │   │   └── ...
│   │   ├── jailson                 # Audios do Jailson Mendes de Família
│   │   │   └── ...
│   │   ├── kauan-desu              # Audios do Kauan Desu de Família
│   │   │   └── ...
│   │   └── pau-guina               # Audios do Paulo Guina de Família
│   │       └── ...
│   ├── autocomplete-de-familia.sh  # Shell Script Para habilitar o auto-complete
│   └── clidefamilia.py             # Código Fonte de Família
├── pyproject.toml                  # Metadados do projeto de família
├── README.rst                      # Documentação de família
└── tests                           # Testes de Família
    ├── __pycache__
    └── test_clidefamilia.py        # Testes unitários de Família, que seja pequeneninho mais que seja garantidoLicença de Famíliapy-de-famíliaé uma bibliotecaopen-source. Todo o desenvolvimento foi feito sobre a LicençaAPAICHE-DE-FAMILIA-2.0.Essa licença, tem como restrição, o tipo do Desenvolvedor atuante no projeto. É aceito apenas:Héteros;Machos;Ursos; eLolitos.Esta é baseada nas licençasPAPAKUeKUKÉPAU, criadas respectivamente nas cidades deCú PequenoePau Grande.Contribuições de FamíliaPara contribuir com o código fonte, é necessário seguir o Código de Conduta deste projeto.Para adicionar mais audios relexantes, basta utilizar oMakefilede familia. Este tem seções que utilizam os utilitáriosyoutube-dleffmpegpara baixar e converter os audios respectivamente.
Package: pydefang
pydefangA defang/refang utility written in Python.Usagepydefangis installed as two command-line utilities accessible asdefangandrefangfrom the command-line.You can use it to convert a url to a defanged version (make it safe(r) to share):-$ defang 'https://www.malicious.org/legit.exe'
hxxps[:]//www[.]malicious[.]org/legit[.]exeor if you need to make something a 'real' url again you can refang:-$ refang 'hxxps[:]//www[.]malicious[.]org/legit[.]exe'
https://www.malicious.org/legit.exeYou can also use it programmatically:In[1]:fromdefangimportdefang,refangIn[2]:defang('https://www.malicious.org/legit.exe')Out[2]:'hxxps[:]//www[.]malicious[.]org/legit[.]exe'In[3]:refang('hxxps[:]//www[.]malicious[.]org/legit[.]exe')Out[3]:'https://www.malicious.org/legit.exe'BugsFeel free to report issues, this 'utility' was build out of ease as I got frustrated with manual conversion of timestamps and strings the whole time.
Package: pydefer
pydeferpydeferaims to emulate the same experience you get from using Golang'sdeferkeyword.pydeferallows you to execute a function around a given wrapped function after the wrapped function has executed.Installing$ pip install pydeferor$ pipenv install pydeferUsageHere's a basic example of using defer to print the sequence of numbers between [6,10] afterprint_sequenceis called (which calls the sequence of numbers between [1,5]).>>>frompydefer.deferimportdefer>>>>>>@defer(print,6,7,8,9,10)...defprint_sequence():...print(1,2,3,4,5)...>>>print_seqeuence()12345678910Some more complex use cases ofpydeferis to be able to close files and not have to worry about closing them yourself in the actual function. Another use case is possibly session management for a web app after a user visits different routes.Here's the aforementioned more complex example of deferring of closing a file.frompython.deferimportdefer@defer(open('employee_data.txt','r').close)defupdate_employee(e_id):f=open('employee_data.txt','w')# DO STUFF TO FILEf.write(e_id.salary)# DO MORE STUFF LATER ONIn the above example, you do not need to manage the file anywhere inside the function as thedeferfunction wrapper will close that file for you after theupdate_employeefunction has finished.
Package: py-defer
DeferAdd a simple golang-esque deferral system for python.TODOAdd deferrals for a functionTests95% testing coverageAdd deferrals for a classAdd deferrals for a moduleExampleIn [1]: import defer

In [2]: @defer.with_defer
   ...: def example_function():
   ...:     print("Hello")
   ...:     defer.defer(print, "!")
   ...:     print("World")
   ...:

In [3]: example_function()
Hello
World
!
Package: pydefillama
pydefillama: a DefiLlama Python clientAn unofficial DeFiLlama wrapper built for data science workflows.For detailed instructions on the endpoints, refer to theAPI docs.Installationpip install pydefillamaUsageimport pydefillama as llama

# fetch all protocols
protocols = llama.fetch_all_protocols()

# fetch TVL for a protocol
llama.fetch_protocol_tvl(protocols[0]["slug"])

# fetch all chains
chains = llama.fetch_all_chains()

# fetch TVL for a chain
llama.fetch_chain_tvl(chains["name"])Full list of supported functionshere.Run Testspython -m unittest discoverDeveloping Locally# install module without pip
python setup.py develop

# run shell to play around
ipython

# import and use module in python shell
import pydefillama as llama
...ContributingIf you would like to contribute to this project, please open an issue or submit a PR.
While we are open to all contributions, we would like to keep this project focused on data science workflows, which is why functions often return a pandas dataframe.
If you would like to use this module for other purposes, please consider forking this repo.MaintainersTo push to PyPi, follow the following steps:Update version insetup.pyPush to main branchRun./updatepip.shLicenseThis project is licensed under the MIT License - see theLICENSEfile for details.AcknowledgementsWe are thankful for the DefiLlama team for providing this open API. If you would like to support them, consider donating to themhere.
Package: pydeidentify
pydeidentifyAn simple tool for text deidentification, built on spacy's state-of-the-art named entity recognition pipelineI created this with absolute simplicity in mind, get started deidentifying with a single pip command and 3 lines of python!UsageView more detailed examples athttps://github.com/Lucasc-99/pydeidentifyDISCLAIMER: this tool is not 100% accurate, and may miss some entitiesThe model is also case sensitive, and will have decreased accuracy if text is all lower-case# Basic usage, see examples/long_example.py for morefrompydeidentifyimportDeidentifier,DeidentifiedText# Deidentify using this Deidentifier classd=Deidentifier()d_text:DeidentifiedText=d.deidentify("""My name is Joe Biden, I'm from Scranton, Pennsylvania and I like to create python packages. I was born 12-1-1999.""")# View output of deidentification using DeidentifiedText classprint(d_text.original())# My name is Joe Biden, I'm from Scranton, Pennsylvania and I like to create python packages. I was born 12-1-1999.print(d_text)# My name is PERSON0, I'm from GPE0, GPE1 and I like to create python packages. I was born DATE0.print(d_text.encode_mapping)# {'Joe Biden': 'PERSON0', 'Scranton': 'GPE0', 'Pennsylvania': 'GPE1', '12-1-1999': 'DATE0'}print(d_text.decode_mapping)# {'PERSON0': 'Joe Biden', 'GPE0': 'Scranton', 'GPE1': 'Pennsylvania', 'DATE0': '12-1-1999'}print(d_text.counts)# {'ORG': 0, 'LOC': 0, 'PERSON': 1, 'GPE': 2, 'DATE': 1, 'FAC': 0}# Use any spacy model that supports named entity recognition by passing it's name in the spacy_model parameter# The line below loads the chinese version of the default english model: 'en_core_web_trf'# see https://spacy.io/models for all modelsd_chinese=Deidentifier(spacy_model="zh_core_web_trf")See all available langauges and pipelines athttps://spacy.io/modelsLicenseMIT
Package: py-dela
# py-dela
Python DELA Dictionary LibraryThis python library handles DELA dictionaries used by Unitex such as [THESE](http://www-igm.univ-mlv.fr/~unitex/index.php?page=7).# Exampleif __name__ == ‘__main__’:lexicon = Lexicon(“/home/ulysses/Applications/Unitex3.1beta/Portuguese (Brazil)/Dela/”)
print(lexicon.get_lemmas(sys.argv[1]))
Package: pydelaunator
# PyDelaunator
Test of implementation of a quad-edge data structure using python.This little project is here to study quad-edge structure
for further developments of [Delaunator](https://pypi.python.org/pypi/delaunator),
which waits since a long time.There is a small GUI (done with the awesome [pyglet](http://pyglet.org) module)
that allow one to play with the triangulation.## Installation/requirements
Installation in one command, including dependancies:pip install pydelaunator## Usage
The package run the GUI if launched directly:python -m pydelaunatorUse–helpfor options.The higher-level API is the [Placer object](pydelaunator/placer.py). See [tests](pydelaunator/test/test_placer.py) for other usage examples.## Notes
### Goals
This work is mainly here to prototype a better API and detect where
and why are bugs in Delaunator.Efficiency is not a primarily goal, altough, since interfacing python with
other languages is a fun exercise, i probably will try some optimizations related to C.
Similarly, some algorithms ideas could be easily tested here.Therefore, PyDelaunator is also a playground for further researchs.### Computational geometry
[Codes used there](pydelaunator/geometry.py) are mainly constitued from online ressources (SO, wikipedia).
They arenottoroughly [tested](pydelaunator/test/test_geometry.py), but as far as the triangulation works.Implementating them in C could probably speed them up a little,
since in python arithmetic codes tends to be costly.### Duality Vertex/data
Maybe not the most optimized, but a mapping object/vertex with a dict
is certainly the less invasive for end-user, [as implemented in the Placer object](pydelaunator/placer.py).Other ways to go:client objects inheriting from Vertexclient objects keeping a reference to their vertexThese two ways are probably far more efficient in case of big data.
However, if current APIallowthese, Placer object continue to track objects using the dict mapping.
Modification of the Placer is needed, or an alternative implementation.
Package: pydelijn
pydelijnA Python package to retrieve realtime data of passages at stops of De Lijn, the public transport company in Flanders (Belgium)Main purpose at the moment is to feed a sensor in Home-AssistantImportant note: a developer account needs to be created athttps://data.delijn.beto generate a subscription key for the api's.InstallpipinstallpydelijnExample usage"""Example usage of pydelijn."""importasyncioimportaiohttpfrompydelijn.apiimportPassagesasyncdeftest_pydelijn():"""Example usage of pydelijn."""subscriptionkey='<put your data.delijn.be subscriptionkey here>'stopid=200551maxpassages=10custom_session=aiohttp.ClientSession()delijndata=Passages(LOOP,stopid,maxpassages,subscriptionkey,custom_session,True)awaitdelijndata.get_passages()awaitcustom_session.close()print_data(delijndata)defprint_data(delijndata):"""Pretty Print the data."""forlineindelijndata.passages:print("----------------------------------------")print("Passage #:%s"%(line['passage']))print("Stop Name:%s"%(line['stopname']))print("Line Number (technical):%s"%(line['line_number']))print("Line Number (public):%s"%(line['line_number_public']))print("Line Description:%s"%(line['line_desc']))print("Line Transport Type:%s"%(line['line_transport_type']))print("Direction:%s"%(line['direction']))print("Final Destination:%s"%(line['final_destination']))print("Due At (schedule):%s"%(line['due_at_schedule']))print("Due At (real-time):%s"%(line['due_at_realtime']))print("Due In (min):%s"%(line['due_in_min']))print("Line Colour - Front:%s- Hex:%s"%(line['line_number_colourFront'],line['line_number_colourFrontHex']))print("Line Colour - Back:%s- Hex:%s"%(line['line_number_colourBack'],line['line_number_colourBackHex']))print("Line Colour - Front Border:%s- Hex:%s"%(line['line_number_colourFrontBorder'],line['line_number_colourFrontBorderHex']))print("Line Colour - Back Border:%s- Hex:%s"%(line['line_number_colourBackBorder'],line['line_number_colourBackBorderHex']))LOOP=asyncio.get_event_loop()LOOP.run_until_complete(test_pydelijn())LOOP.close()
Package: pydelivengo
pydelivengopydelivengo is a Python library using the MyDelivengo APIDocumentationPyDelivengo :https://alexandriagroup.github.io/pydelivengo/MyDelivengo (La Poste API documentation) :http://www.assistance-mydelivengo.fr/api/You can find the list of parameters for each function into this
documentation.How to useapi=PyDelivengo(api_authorization="your_mydelivengo_api_key")api.get_user_info()# Get your user infoapi.get_envois()# get all your "envois"api.get_pli(11437479,print_pdf=True)# Get the "pli" with ID 11437479 and generate PDF to printapi.get_depots(params={'date[from]':'30/11/2017'})# Get the "depots" from November 30thLooks toMyDelivengodocumentation to see all parameters.ToolsDecode and save PDF from APIAn example for decode and save the Base64 Encoded String return by the
MyDelivengo API:importosfrombase64importdecodebyteswithopen(os.path.expanduser('path/test.pdf'),'wb')asf:f.write(decodebytes(api_data.encode('ascii')))
Package: pydelling
PydellingSet of pre- and post-processing scripts for modellingRecommendationsUsing and IDE like PyCharm is recommended to keep things easy. It may be useful if you need to debug your scripts,
or edit them.Using PyCharm, you can follow the installation step and then run your scripts in pydelling env automatically.
Otherwise, you can follow the steps below to run pydelling manually.InstallationConfigure the conda environment runningconda env create --file environment.yamlRegular pip dependencies can be found atrequirements.txtTemplates and ExamplesSome examples of usage of pydelling may be found insidetemplatesfolder. Useconfig.yamlto setup data sources and
other variables.Running template scriptsIn order to execute pydelling,pydellingconda env needs to be loaded.Loading conda environmentconda activate pydellingRunning scriptRun the script and set the config file as argument. If the config file is not specified,./config.yamlwill be taken as default.Example:python templates\interpolate_top_BC\interpolate_BC.py templates\interpolate_top_BC\config.yaml
Package: pydelorean
deloreanA library to convert markup documents into tree data structures and
vice versa. There is greater functionality available to modify, prune,
add and delete parts of documents when there are in the MarkdownTree
structure.The full list of features can be found in FEATURES.md or in the documentation.InstallInstall via pippipinstallpydeloreanYou can find the library page herehere <nil>__Quick Usage GuideThe library can be used to convert markdown documents into forest data strucutre. Using just the treeify command on the following text# Chikin TalesOnce there was a chikin.## Chapter 1 : Chikin FlyChickens don't fly. They do only the following:-waddle-plop### WaddlingA waddle is what these birds do.## Chapter 2 : Chikin Scream### PloppingPlopping involves three steps:1.squawk2.plop3.repeat, unless ordered to squatfrompydeloreanimporttreeifytree=treeify(text)print(tree)Chikin Tales
                  /     \       \
                 /       \       \
           (Once th..)    |       \
                          |        \
                      Chapter 1     \
                      /     |     Chapter 2
                     /      |         |
           (Chickens do..)  |       Plopping
                            |         |
                         Waddling   (Plopping...)
                            |
                        (A waddle...)For a usage guide, access thesamples/directory or check out the
documentation page here -nilFeaturesSome of the features of this library are:forest data structure for Markdown, reStructuredText, AsciiDoc, JSON, YAML and XML.'cleaning' of documents to remove unwanted elements.document manipulation using the tree data structure.document generation from tree data structure.LicenseThis project is licensed under the Apache 2.0 License. A copy of the license can be found in the LICENSE file.
Package: pyDeltaRCM
pyDeltaRCMis a computationally efficient, free and open source, and easy-to-customize numerical delta model based on the original DeltaRCM model design (Matlab deltaRCMmodel by Man Liang;Liang et al., 2015).pyDeltaRCMdelivers improved model stability and capabilities, infrastructure to support exploration with minimal boilerplate code, and establishes an approach to extending model capabilities that ensures reproducible and comparable studies.Weighted random walks for 20 water parcels, in apyDeltaRCMmodel run with default parameters.DocumentationFind the complete documentation here.Documentation includes aninstallation guide, a thoroughguide for users, detailedAPI documentation for developers, aplethora of examplesto use and develop pyDeltaRCM in novel scientific experiments, and more!InstallationSee our completeinstallation guide, especially if you are a developer planning to modify or contribute code (developer installation guide), or if you are new to managing Pythonvenvorcondaenvironments.For a quick installation into an existing Python 3.x environment:$pipinstallpyDeltaRCMExecuting the modelWe recommend you check out ourpyDeltaRCM in 10 minutes tutorial, which is part of our documentation.Beyond that brief tutorial, we have a comprehensiveUser DocumentationandDeveloper Documentationto check out.Additional notesThis repository no longer includes theBasic Model Interface (BMI)wrapper to the DeltaRCM model.pyDeltaRCMmaintains BMI compatibility through another repository (the BMI_pyDeltaRCM model).
Package: pydelta-smt
pyDelta: delta debugging for SMT-LIBpyDelta is adelta debuggerforSMT-LIBfiles.
It is heavily inspired by other similar tools likeddSMT,DeltaSMTordelta.
pyDelta is based on a few fundamental ideas:parse generic S-expressions. This is very robust against changes to SMT-LIB or solver specific extensions. It also allows for a small parser and simple node structure. Most semantic information that is required for simplification can be recovered cheaply.parallel execution. Running multiple checks in parallel allows for significant speedups when minimizing faulty inputs.easy to extend. It should be fairly easy to add new simplifications by implementing new mutators.fixed-point iteration. Simplifications are applied until no simplificationss are possible anywhere. Rerunning pyDelta on a minimized input should not yield further improvements.flexible to use. The options should cover most use cases, including checking for the exit code or checking for specific patterns in the (regular or error) output.Please visithttps://pydelta.readthedocs.iofor more documentation.