Saravanan666/pypi-org huggingface dataset:
Package: pymt-topography
PyMT component for accessing land elevation data.Free software: MIT LicenseDocumentation:https://pymt-topography.readthedocs.io.ComponentPyMTTopographyfrom pymt.models import TopographyInstalling pymtInstallingpymtfrom theconda-forgechannel can be achieved by addingconda-forgeto your channels with:conda config --add channels conda-forgeNote: Before installingpymt, you may want to create a separate environment
into which to install it. This can be done with,conda create -n pymt python=3
conda activate pymtOnce theconda-forgechannel has been enabled,pymtcan be installed with:conda install pymtIt is possible to list all of the versions ofpymtavailable on your platform with:conda search pymt --channel conda-forgeInstalling pymt_topographyOncepymtis installed, the dependencies ofpymt_topographycan
be installed with:pip install bmi-topographyTo installpymt_topography,pip install pymt_topography
Package: pymtts
pymttsA python package for using Azure smart AI speechhow to installpip3install--upgradepymttssample use casefrompymttsimportasync_Mttsmtts=async_Mtts()mp3_bytes_buffer=awaitmtts.mtts("欢迎使用pymtts","zh-CN-YunxiNeural",'general',0,0,)get all supported voice modelsfrompymttsimportasync_Mttsmtts=async_Mtts()models=awaitmtts.get_lang_models()
Package: pymuco
Pymuco: A Python Music Computation Library for Musicians and DevelopersPurely Pythonic 🐍 Zero dependenciesWebsite:https://pymuco.orgPyPi:https://pypi.org/project/pymuco/Source code:https://github.com/pymuco/pymucoDocumentation:https://pymuco.readthedocs.io/en/latest/Issue tracker:https://github.com/pymuco/pymuco/issuesCommunityhttps://github.com/orgs/pymuco/discussionsReport a security vulnerability:https://github.com/pymuco/pymuco/security/policyGetting Startedpip install pymucoFeaturesPymuco library offers a comprehensive toolkit that includes:Integration of theoretical musical conceptsDevelopment of an autonomous notation system for computer musicConversion of musical code to executable audio fileUtilities related to MIDITestingTo run tests for Pymuco, you can use Python's built-inunittestmodule. Simply execute the following command:python3 -m unittest discover testContributionsContributions to Pymuco are encouraged and can be made by forking the repository, making changes, testing, and submitting a pull request. Detailed instructions on how to contribute can be found in theHow to contributeguide.Code of ConductPymuco follows the Contributor Covenant Code of Conduct, which sets the standards for behavior and aims to create a welcoming and inclusive community. For more information, please refer to theContributor Covenant Code of Conductfile.Copyright and License InformationCopyright © 2022-2023 German Margon. All rights reserved.See theLICENSEfor information, terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES.All trademarks referenced herein are property of their respective holders.
Package: pymudclient
PyMudClient: 用 Python 開發的 MUD Client 核心這是什麼？MUD, Multi-User Dungeon，是多人即時虛擬類遊戲，通常以文字描述為基礎。pymudclient實作了連線、斷線重連、顯示、輸入介面、Alias、Trigger、Timer 的功能。PyMudClient: 用 Python 開發的 MUD Client 核心這是什麼？已測試過環境支援功能安裝使用範例輸入介面API ReferencerunAliasAlias class 參數使用範例TriggerTrigger class 參數使用範例TimerTimer class 參數使用範例已知問題尚未實作功能License已測試過環境macOS Ventura 13.3.1 (a)GNU/Linux 5.15.0-1032-raspi aarch64支援功能連線：根據輸入的 host 跟 port 進行連線。斷線重連：發生異常、server 重新啟動導致的斷線，會等待 3 秒後重新連線。顯示：顯示 server 回傳的內容。有處理輸入中文的顯示問題。只針對萬王之王 (kk.muds.idv.tw:4000) 進行測試過。輸入介面：在最後一行顯示輸入的文字；送出的文字還沒有改動時按下 Enter 會再送一次。安裝pip install pymudclient使用範例fromaliasesimportALIAS_LISTimportpymudclientfromsettingsimport(HOST,PORT,)fromtimersimportTIMER_LISTfromtriggersimportTRIGGER_LISTmud.run(HOST,PORT,alias_list=ALIAS_LIST,trigger_list=TRIGGER_LIST,timer_list=TIMER_LIST,)輸入介面輸入的文字會固定出現在最後一行。可使用 左/右/Home/End 移動位置。可使用 Backspace/Ctrl-H 刪除游標位置前面的字元。可使用 Delete 刪除游標位置後面的字元。可使用 Ctrl-W 刪除前面一個 word (仿照 vim 功能)。按下 Enter 送出後，會記住最後一次送出的文字，可以進行編輯，或直接按 Enter 再送一次。API Referencerun連線至<host>:<port>run(host,port,alias_list=None,trigger_list=None,timer_list=None)hoststring: 連線的主機網址或 IP。portnumber: 連線的主機 port。alias_listlist: (optional) Alias 清單，參考下面說明。trigger_listlist: (optional) Trigger 清單，參考下面說明。timer_listlist: (optional) Timer 清單，參考下面說明。AliasAlias class 參數start_textstring: Alias 的指令，可以包含空格。patternstring: (optional) 要替換的指令，會傳到 host。funcfunction: (optional) 要呼叫的 function。function prototype:deffunc(text:str)->strorNone:...text參數會把除了 start_text 外的後面的文字全部傳入。如果 function 有回傳文字，會傳給 host。pattern 跟 func 2 選 1。使用範例frompymudclientimportAliasALIAS_LIST=[Alias('kk',pattern='kingdom %0'),Alias('c',pattern='cast %1 on %2'),Alias('draw',pattern='draw %1 %-1'),]pattern 中的 %0 為全部參數。以上面的例子，kk 安安 你好 123，%0就是安安 你好 123。pattern 中的 %1 ~ %n 為第 1 ~ 第 n 個參數。以上面的例子，c fire stone，%1就是fire；%2就是stone。pattern 中的 %-1 為去掉第 1 個參數後的其他所有參數；%2 為去掉第 2 個參數後的其他所有參數；%n 為去掉第 n 個參數後的其他所有參數。以上面的例子，draw board ABCD 1234，%-1就是ABCD 1234。TriggerTrigger class 參數patternstring: 觸發的 pattern，使用 regex。datastring: (optional) 要直接送出的文字，如果是固定文字用這個就好。funcfunction: (optional) 要呼叫的 function。function prototype:deffunc(text:str,match_group:list)->strorNone:...text參數會把有符合 trigger 條件的整行文字傳入。match_group參數會把 regex match 到的match.groups()傳入如果 function 有回傳文字，會傳給 host。使用範例frompymudclientimportTriggerdefsummon(text,match_group):returnf'summon{match_group[0]}'TRIGGER_LIST=[Trigger(r"^您的英文名字\(新人物請輸入\'new\'\) :$",data=USER),Trigger(r"^請輸入密碼﹕$",data=PW),Trigger(r'\(([a-zA-Z]+)\)告訴你﹕sum$',func=summon),]前面 2 個是輸入帳號密碼的 trigger。第 3 個是幫忙把人招喚過來的 trigger，有抓取角色 id。TimerTimer class 參數secondsnumber: 多久執行一次，單位是秒。datastring: (optional) 要直接送出的文字，如果是固定文字用這個就好。funcfunction: (optional) 要呼叫的 function。function prototype:deffunc()->strorNone:...如果 function 有回傳文字，會傳給 host。使用範例frompymudclientimportTimerTIMER_LIST=[Timer(900,data='save'),]每 900 秒傳送一個save到 host。已知問題目前沒有。尚未實作功能輸入功能的歷史紀錄，可按 上/下 選擇過去送出過的文字。有看過有些 mud 是有小地圖的功能，應該是 host 傳送過來更新的，這功能需要深入研究 mud 的資料傳送規則。LicenseMIT
Package: pymugen
pymugenThis module allows to manage data about genomic sequences, specificaly getting sequences from a FASTA file.The module's other functionality is the ability to get sequences with a mutation from a VCF file and transform it to another representation.InstallationInstall pymugen with pythonpip3 install pymugenUsage/ExamplesFasta example::from pymugen.fasta import FastaReader

fasta = FastaReader("fasta.fa")

chromosome = fasta['chr1']
sequence = chromosome.sequence(10, 5, 5)

sequence[1]
# A

sequence[:]
# CATGCATGCAT

str(sequence)
# C-A-T-G-C,A,T-G-C-A-T

chromosome[5: 16]
# CATGCATGCATVCF example::from pymugen.transformers import ExtendedTransformer
from pymugen.fasta import FastaReader

vcf = ExtendedTransformer("vcf.vcf", "fasta.fa")

fasta = FastaReader("fasta.fa")

chromosome = fasta['chr1']
sequence = chromosome.sequence(10, 5, 5)

mutated = vcf.method(sequence, "CGT")

str(mutated)
# 'A|w-q-r-e-w,s-d-f,v-c-x-z-v'

mutated[:]
# 'wqrewsdfvcxzv'
Package: pymul
PyMuLPyMuL is a machine learning library which includes neural networks and genetic algorithms!InstallationTo install PyMuL, run:pipinstallpymulUsageHere is a simple program that solves XOR:frompymulimportNetwork# Input data# Use the Network.to_batch_array() function to convert to arrayx_train=Network.to_batch_array([[0,0],[0,1],[1,0],[1,1]])# Expected outputsy_train=Network.to_batch_array([[0],[1],[1],[0]])# Initialize network with 2 input nodes, 1 layer of 3 hidden nodes, and 1 output nodenetwork=Network([2,3,1])# Train networknetwork.batch_train(x_train,y_train)# Predict outputsprint(network.batch_predict(x_train))CreditsThanks to Omar Aflak for his Neural Network from scratch in Python tutorial! It helped a lot while making this project!
Also, thanks to Coding Tech on YouTube for the tutorial on publishing Python packages!
Package: pymult
# Building Python Extension Modules in Assembly![GitHub Actions](https://github.com/tonybaloney/python-assembly-poc/workflows/Python%20package/badge.svg)This repository is a proof-of-concept to demonstrate how you can create a Python Extension in
100% assembly.Demonstrates:How to write a Python module in pure assemblyHow to write a function in pure assembly and call it from Python with Python objectsHow to call the C API to create a PyObject and parse PyTuple (arguments) into raw pointersHow to pass data back into PythonHow to register a module from assemblyHow to create a method definition in assemblyHow to write back to the Python stack using the dynamic module loaderHow to package a NASM/Assembly Python extension with distutilsThe simple proof-of-concept function takes 2 parameters,`default >>> import pymult >>> pymult.multiply(2, 4) 8 `## But, Why?Just because it can be done.Also, I want to see if some AVX/AVX2 instructions (high-performance matrix multiplication especially) can be used
directly from Python.
Package: py-multiaddr
MultiaddrPython implementation ofjbenet’smultiaddrFree software: MIT LicenseDocumentation:https://multiaddr.readthedocs.org.UsageSimplefrommultiaddrimportMultiaddr# construct from a stringm1=Multiaddr("/ip4/127.0.0.1/udp/1234")# construct from bytesm2=Multiaddr(bytes_addr=m1.to_bytes())assertstr(m1)=="/ip4/127.0.0.1/udp/1234"assertstr(m1)==str(m2)assertm1.to_bytes()==m2.to_bytes()assertm1==m2assertm2==m1assertnot(m1!=m2)assertnot(m2!=m1)ProtocolsfrommultiaddrimportMultiaddrm1=Multiaddr("/ip4/127.0.0.1/udp/1234")# get the multiaddr protocol description objectsm1.protocols()# [Protocol(code=4, name='ip4', size=32), Protocol(code=17, name='udp', size=16)]En/decapsulatefrommultiaddrimportMultiaddrm1=Multiaddr("/ip4/127.0.0.1/udp/1234")m1.encapsulate(Multiaddr("/sctp/5678"))# <Multiaddr /ip4/127.0.0.1/udp/1234/sctp/5678>m1.decapsulate(Multiaddr("/udp"))# <Multiaddr /ip4/127.0.0.1>TunnelingMultiaddr allows expressing tunnels very nicely.printer=Multiaddr("/ip4/192.168.0.13/tcp/80")proxy=Multiaddr("/ip4/10.20.30.40/tcp/443")printerOverProxy=proxy.encapsulate(printer)print(printerOverProxy)# /ip4/10.20.30.40/tcp/443/ip4/192.168.0.13/tcp/80proxyAgain=printerOverProxy.decapsulate(printer)print(proxyAgain)# /ip4/10.20.30.40/tcp/443History0.0.2 (2016-5-4)Fix a bug in decapsulate that threw an IndexError instead of a copy of the
Multiaddr when the original multiaddr does not contain the multiaddr to
decapsulate. [viafredthomsen#9]Increase test coverage [viafredthomsen#9]0.0.1 (2016-1-22)First release on PyPI.
Package: py-multiapi
py-multiapia python library for api.itayki.comInstallationpip3 install py-multiapiExamplesexecute code:from py_multiapi import multiapi
import asyncio
async def main():
 print(await multiapi.exec_code(lang="python3", code="print('Hello World')"))
asyncio.run(main())make web screenshot:from py_multiapi import multiapi
import asyncio
async def main():
 a = await multiapi.webshot(url="duckduckgo.com")
 with open("test.png", "wb") as img:
     img.write(a)
asyncio.run(main())get help from the function:from py_multiapi import multiapi
def main_help():
    print(help(multiapi.exec_code))
main_help()linkspypiversions in other languagesnodejshttps://github.com/AndrewLaneX/multiapigolanghttps://github.com/rojserbest/multiapi
Package: py-multibase
py-multibaseMultibaseimplementation for PythonMultibase is a protocol for distinguishing base encodings and other simple string encodings, and for ensuring full compatibility with program interfaces.It answers the question: Given data d encoded into string s, how can I tell what base d is encoded with?Base encodings exist because transports have restrictions, use special in-band sequences, or must be human-friendly.
When systems chose a base to use, it is not always clear which base to use, as there are many tradeoffs in the decision.
Multibase is here to save programs and programmers from worrying about which encoding is best.It solves the biggest problem: a program can use multibase to take input or produce output in whichever base is desired.The important part is that the value is self-describing, letting other programs elsewhere know what encoding it is using.Free software: MIT licenseDocumentation:https://py-multibase.readthedocs.io.Python versions: 3.5, 3.6Installation$pipinstallpy-multibaseSample Usage>>># encoding a buffer>>>frommultibaseimportencode,decode>>>encode('base58btc','hello world')b'zStV1DL6CwTryKyV'>>>encode('base64','hello world')b'mGhlbGxvIHdvcmxk'>>># decoding a multibase>>>decode('mGhlbGxvIHdvcmxk')b'hello world'>>>decode(b'zStV1DL6CwTryKyV')b'hello world'>>>decode(encode('base2',b'hello world'))b'hello world'Supported codecsbase2base8base10base16base16base16base32hexbase32base32zbase36base36upperbase58flickrbase58btcbase64base64urlHistory1.0.3 (2020-10-26)Add base36 and base36 upper encodingsFix issue with base16 encoding1.0.0 (2018-10-19)Re-implement encoding for base32 and base64, as the implementation was buggyAdd extensive tests for all encodings0.1.0 (2017-09-02)First release on PyPI.
Package: py-multicodec
py-multicodecMulticodecimplementation in Pythonmulticodecis a self-describing multiformat, it wraps other formats with a tiny bit of self-description.A multicodec identifier is both a varint and the code identifying the following data, this means that the most
significant bit of every multicodec code is reserved to signal the continuation.You can checkthe table herefor the list of supported codecs bypy-multicodec.Free software: MIT licenseDocumentation:https://py-multicodec.readthedocs.io.Python versions: 3.5, 3.6Installation$pipinstallpy-multicodecSample Usage>>>frommulticodecimportadd_prefix,remove_prefix,get_codec>>># adding a prefix to existing data>>>add_prefix('sha2-256','EiC5TSe5k00')b'\x12EiC5TSe5k00'>>># removing prefix from prefixed data>>>remove_prefix(b'\x12EiC5TSe5k00')EiC5TSe5k00>>># get codec used to prefix the prefixed data>>>get_codec(b'\x12EiC5TSe5k00')'sha2-256'Updating the lookup tableUpdating the lookup table is done with a script. The source of truth is themulticodec default table.
Update the table with running:$curl-XGEThttps://raw.githubusercontent.com/multiformats/multicodec/master/table.csv|./tools/update-table.pyHistory0.1.3 (2018-10-20)Handle exception when the varint is invalid0.1.0 (2017-09-03)First release on PyPI.
Package: pymultieis
pymultieisInstallation|Examples|Documentation|Citing this workA library for fitting a sequence of electrochemical impedance spectra (PyTorch version).Implements algorithms for simultaneous and sequential fitting.Written in python and based on thePyTorchlibrary.Leverages deterministic solvers frompytorch-minimizewhich compute the first- and second-order derivatives via autograd.InstallationInstallation of pymultieis should be done via pip:pipinstallpymultieisGetting started with pymultieiscontains a quick start guide to
fitting your data withpymultieis.ExamplesJupyter notebooks which cover several aspects ofpymultieiscan be found inExamples.DocumentationDetails about thepymultieisAPI, can be found in thereference documentation.Citing this workIf you use pymultieis for academic research, you may cite the library as follows:@misc{Chukwu2022,
  author = {Chukwu, Richard},
  title = {pymultieis: a library for fitting a sequence of electrochemical impedance spectra},
  publisher = {GitHub},
  year = {2022},
  url = {https://github.com/richinex/pymultieis},
}
Package: py-multiformats-cid
CID (Content IDentifier)What is CID ?CIDis a format for referencing content in distributed information systems,
likeIPFS.
It leveragescontent addressing,cryptographic hashing, andself-describing formats.It is the core identifier used byIPFSandIPLD.CID is a self-describing content-addressed identifier.It uses cryptographic hashes to achieve content addressing.It uses severalmultiformatsto achieve flexible self-description,
namelymultihashfor hashes,multicodecfor data content
types, andmultibaseto encode the CID itself into strings.Sample Usage>>>frommultiformats_cidimportmake_cid>>>make_cid('QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4')CIDv0(version=0,codec=dag-pb,multihash=b"\x12\xb9M'\xb9\x93M>\x08\xa5.R\xd7\xda}\xab\xfa\xc4\x84..")>>>cid=make_cid('QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4')>>>print(cid.version,cid.codec,cid.multihash)>>>print(cid.encode())QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4>>>str(cid)'QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4'InstallationStable releaseTo installpy-multiformats-cid, run this command in your terminal:$pipinstallpy-multiformats-cidThis is the preferred method to install CID, as it will always install the most recent stable release.If you don’t havepipinstalled, thisPython installation guidecan guide
you through the process.From sourcesThe sources forpy-multiformats-cidcan be downloaded from theGithub repo.You can either clone the public repository:$gitclonehttps://github.com/pinnaculum/py-multiformats-cidOr download thetarball:$curl-OLhttps://github.com/pinnaculum/py-multiformats-cid/tarball/masterOnce you have a copy of the source, you can install it with:$pythonsetup.pyinstallOther infoFree software: MIT licenseDocumentation:https://py-multiformats-cid.readthedocs.io.Python versions: 3.7, 3.8, 3.9, 3.10History0.4.4 (2022-11-23)py.typed in package_data0.4.3 (2022-11-19)Add typing hints: contribution from @bh2smithAdd CI workflow0.4.2 (2022-10-31)Transition release to make mypy happy0.4.0 (2022-10-31)Rename py-cid to py-multiformats-cid (@pinnaculum)remove crazy version range limits for dependencies which cause major headaches
for downstream projects with multiple confluent indirect dependencies on this library0.2.1 (2018-10-20)Fix edge cases with multibase and multihash decodingAdded hypothesis tests while verifying CIDs0.1.5 (2018-10-12)Handle the case where an incorrect base58 encoded value is provided tomake_cid0.1.0 (2017-09-05)First release on PyPI.
Package: pymultihash
This is an implementation of themultihashspecification in Python.
The main component in the module is theMultihashclass, a named tuple that
represents a hash function and a digest created with it, with extended
abilities to work with hashlib-compatible hash functions, verify the integrity
of data, and encode itself to a byte string in the binary format described in
the specification (possibly ASCII-encoded).  Thedecode()function can be
used for the inverse operation, i.e. converting a (possibly ASCII-encoded)
byte string into aMultihashobject.For more information, please see the documentation under thedocsdirectory and the docstrings in themultihashpackage.  Ready-to-read
documentation is also available inhttps://pymultihash.readthedocs.io/.This package requires at least Python 3.4.
Package: py-multihash
Multihash implementation in PythonFree software: MIT licenseDocumentation:https://multihash.readthedocs.io.Python versions: Python 3.4, 3.5, 3.6History0.2.3 (2018-10-20)Fix issue with decoding breaking with app codesFix issue with invalid varint decoding0.1.0 (2018-10-19)First release on PyPI.
Package: pymultilint
Multilint (for Python)A utility tying together multiple linting and other code quality toolsIntroMultilint allows running several code quality tools under the same interface.
This is convenient as it saves time on writing multiple linter / formatter /
checker invocations every time in a project.InstallationSince there is an existing project calledmultilint, this Multilint can be
installed aspymultilint:$pip3installpymultilintUsageMultilint exposes a CLI entry point:$multilint[paths...]It can optionally take a set of starting paths. There are no CLI options,
as Multilint strives to have all of its configuration codified (seeConfigurability).Alternatively, Multilint is also usable via its API - either themainmethod, or theMultilintclass.Supported ToolsCurrently, Multilint integrates the following code quality tools:Autoflake- removes unused imports and
unused variables as identified byPyflakesIsort- sorts imports according to specified
ordersBlack- the self-proclaimed
"uncompromising code formatter" - formats Python source with an opinionated
styleMypy- static type checker for PythonPylint- general best practices linterPydocstyle- in-source documentation
best practices linterPyupgrade- upgrades Python syntax to
the latest for the specified versionConfigurabilityAdditionally, for tools that do not currently support configuration viapyproject.toml(PEP-621),
Multilint exposes a configuration interface for them. This allows for
centralized codification of configuration of all code quality tools being used
in a project.Example relevant sections from apyproject.toml:[tool.autoflake]recursive=truein_place=trueignore_init_module_imports=trueremove_all_unused_imports=trueremove_unused_variables=trueverbose=truesrcs_paths=["somepackage"][tool.mypy]src_paths=["someotherpackage"][tool.multilint]tool_order=["autoflake","isort","pyupgrade","black","mypy","pylint","pydocstyle"]src_paths=["."]At the time of writing of this README (2020-01-31), neitherAutoflakenorMypysupport configuration viapyproject.toml. While support for each may or may
not be added at some point in the future, with multilint configuring these tools
is possibletoday.Currently, the only two supported configuration option for Multilint are:tool_order, which defines the execution order of supported tools, andsrc_paths, which specifies the source paths (can be files and directories)
for Multilint to operate on.Each integrated tool additionally supportssrc_dirsas an override, in case
it is desired to target a specific tool at a different set of files
/ directories.Extending MultilintSupport for more tools may be added by subclassing theToolRunnerclass and overriding the.run(...)method.There are some utilities provided, such as:A logger that masquerades as a TextIO object to allow capturing tool output
from within and wrapping it with preferred loggingA dictionary for tool configuration that is automatically available in theToolRunnerclass, as long as the tool is registered inTheToolenum,TheTOOL_RUNNERSmapping, and declaredTheDEFAULT_TOOL_ORDERclass variable ofMultilint.Documentation about adding support for more tools to Multilint may be added in
the future.
Package: pymultimap
pymultimapTable of ContentsMultiMapInstallationUsageLicenseMultiMapPython based Dictionary with support for duplicate keys and sorted data based on keysInstallationpip install pymultimapUsagefrompymultimap.multimapimportMultiMapmm=MultiMap()mm["a"]=1mm["a"]=2mm["b"]=3print(mm)Shouldprint:{a:[1,2],b:[3]}frompymultimap.multimapimportMultiMapsorted_multimap=MultiMap(sorted=True,reverse=True)sorted_multimap["a"]=1sorted_multimap["c"]=3sorted_multimap["b"]=2print(sorted_multimap)Shouldprint:{c:[3],b:[2],a:[1]}Licensepymultimapis distributed under the terms of theMITlicense.