Saravanan666/pypi-org huggingface dataset:
Package: pooled-ProcessMixIn
A pure-python module that provides asynchronous mix-in
similar to standard ThreadingMixIn and ForkingMixIn
but provides better performance by utilizing a pool
of processes forked at initialization time
each process allocate a pool of given number of threadsCopyright © 2012, Muayyad Alsadi <alsadi@gmail.org>
Released under the same terms as of Pythonhttp://docs.python.org/license.html
Package: pool-grpc-client
pool-grpc-clientA python grpc client for Lightning Pool (Lightning Network Daemon) ⚡⚡⚡This is a wrapper around the default grpc interface that handles setting up credentials (including macaroons.DependenciesPython 3.6+Working LND lightning node, take note of its ip address.Copy your pool.macaroon and tls.cert files from~/.pool/mainnetto a directoy on your machine.Installationpipinstallpool-grpc-clientBasic UsageThe api mirrors the underlying lnd grpc api (http://api.lightning.community/) but methods will be in pep8 style. ie..GetInfo()becomes.get_info().frompathlibimportPathimportjsonfrompoolgrpc.clientimportPoolClientcredential_path=Path("/home/skorn/.pool/mainnet/")mac=str(credential_path.joinpath("pool.macaroon").absolute())tls=str(credential_path.joinpath("tls.cert").absolute())pool=PoolClient(macaroon_filepath=mac,cert_filepath=tls)pool.get_info()pool.get_lsat_tokens()Specifying Macaroon/Cert filesBy default the client will attempt to lookup thereadonly.macaronandtls.certfiles in the mainnet directory.
However if you want to specify a different macaroon or different path you can pass in the filepath explicitly.lnd=LNDClient(macaroon_filepath='~/.lnd/invoice.macaroon',cert_filepath='path/to/tls.cert')Compiling Proto Filesmkvirtualenv gen_rpc_protos
# or 
workon gen_rpc_protos
# then

pip install grpcio grpcio-tools googleapis-common-protos sh

cd poolgrpc
git clone --depth 1 https://github.com/googleapis/googleapis.git
cd ..Set environment variablesexport APP_DIR=$HOME/Documents/lightning/pool
export CLIENT_DIR=$HOME/Documents/lightning/pool-grpc-clientpython3rebuild_protos.pyDeploy to Test-PyPipoetrybuild
twinecheckdist/*
twineupload--repository-urlhttps://test.pypi.org/legacy/dist/*
Package: poolhub
## poolhub<i>Track threads in your Python program.</i><p align="center"><img src="https://raw.githubusercontent.com/tsarpaul/poolhub/master/poolhub.png" alt="poolhub demo"></p>#### Installationpoolhub is only compatible with Python 3> pip install poolhub#### Usage```import poolhub```Once you run your program, the web browser will open.To set name and status in your thread:```t = threading.Thread(name="Thread no. 1", status='Initializing thread', target=func)```To update your thread's status:```t = threading.current_thread()t.status = "Reporting in for duty"```<hr>When you terminate a thread, this raises a`KeyBoardInterrupt` inside the thread to terminate it.
Package: pool-lnd-grpc
pool-grpc-clientA python grpc client for Lightning Pool (Lightning Network Daemon) ⚡⚡⚡This is a wrapper around the default grpc interface that handles setting up credentials (including macaroons.DependenciesPython 3.6+Working LND lightning node, take note of its ip address.Copy your pool.macaroon and tls.cert files from~/.pool/mainnetto a directoy on your machine.Installation# NOT ON PYPI YETpipinstallpool-grpc-clientBasic UsageThe api mirrors the underlying lnd grpc api (http://api.lightning.community/) but methods will be in pep8 style. ie..GetInfo()becomes.get_info().frompathlibimportPathimportjsonfrompoolgrpc.clientimportPoolClientcredential_path=Path("/home/skorn/.pool/mainnet/")mac=str(credential_path.joinpath("pool.macaroon").absolute())tls=str(credential_path.joinpath("tls.cert").absolute())pool=PoolClient(macaroon_filepath=mac,cert_filepath=tls)pool.get_info()pool.get_lsat_tokens()Specifying Macaroon/Cert filesBy default the client will attempt to lookup thereadonly.macaronandtls.certfiles in the mainnet directory.
However if you want to specify a different macaroon or different path you can pass in the filepath explicitly.lnd=LNDClient(macaroon_filepath='~/.lnd/invoice.macaroon',cert_filepath='path/to/tls.cert')Generating LND Proto Filesvirtualenvlndsourcelnd/bin/activate
pipinstallgrpciogrpcio-toolsgoogleapis-common-protossh
gitclonehttps://github.com/lightningnetwork/lnd.git
mkdirgenprotos
gitclonehttps://github.com/googleapis/googleapis.git# python -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. rpc.protofrompathlibimportPathimportshutilimportshforprotoinlist(Path("../lnd/lnrpc").rglob("*.proto")):shutil.copy(proto,Path.cwd())protos=list(Path(".").glob("*.proto"))forprotofileinprotos:try:sh.python("-m","grpc_tools.protoc","--proto_path=.","--python_out=.","--grpc_python_out=.",str(protofile))protos.remove(protofile)exceptExceptionase:print(f"Error in proto:{protofile}")Last Step:
In File: verrpc_pb2_grpc.py
Change:
import verrpc_pb2 as verrpc__pb2
To:
from lndgrpc import verrpc_pb2 as verrpc__pb2Deploy to Test-PyPipoetrybuild
twinecheckdist/*
twineupload--repository-urlhttps://test.pypi.org/legacy/dist/*
Package: poolmanager
poolmanagerSimple pool manager implementation for unordered resultspoolmanager is compatible with python 2.6, 2.7, 3.6 and 3.7Usagectrl+cwill automatically terminate the main process and
thus all the associated subprocesses. You'll need to wait for all the
functions to finish their current execution before being able to stop
all the processes. One can also easily create a callback function to monitor
the computation state.frompoolmanagerimportPoolManagerdefadd(x):returnx+1.5defcallback(counter,result):print'counter:%s'%counterprint'result:%s'%resultdefmain():chunk=2iterator=xrange(0,10)pm=PoolManager(numProcs=2,factor=2,store=True)pm.imap_unordered(add,iterator,chunk,callback=callback)if__name__=='__main__':main()>>counter:1>>result:1.5>>counter:2>>result:2.5>>counter:3>>result:5.5>>counter:4>>result:6.5>>counter:5>>result:7.5>>counter:6>>result:8.5>>counter:7>>result:3.5>>counter:8>>result:4.5>>counter:9>>result:9.5>>counter:10>>result:10.5print[iforiiniterator]printpm.results>>[0,1,2,3,4,5,6,7,8,9]>>[1.5,2.5,5.5,6.5,7.5,8.5,3.5,4.5,9.5,10.5]Testspython setup.py testPublish a new version of the moduleEdit$HOME/.pypircand add (username and password in keepass):[distutils]
index-servers =
  pypi
  pypitest

[pypi]
repository=https://upload.pypi.org/legacy/
username=iwi***
password=

[pypitest]
repository=https://test.pypi.org/legacy/
username=iwi***
password=Bump version insetup.py.Upload the new module to the test repository:pip install --upgrade setuptools
python setup.py sdist upload -r pypitest
python setup.py bdist_wheel upload -r pypitestTest local install from test repository.pip install -i https://test.pypi.org/simple/ poolmanagerIf everything is ok, push the new version to the default repository.python setup.py sdist upload -r pypi
python setup.py bdist_wheel upload -r pypiTest the newly created module.Create a RELEASE in github.CONTRIBUTORS:Gilber JeizinerLoïc Gasser
Package: pool-resources
Pool ResourcesDescriptionLibrary to generalizemultiprocessing.Pool(n: int)to handle generic resources.First class support for torch devices as a generic resource.Example for n torch GPUs and k torch Modulesfrom pool_resources import PoolResources
from pool_resources.resources import TorchResource

class Model(nn.Module):
    def __init__(self, input_shape, output_shape):
        super().__init__()
        self.fc = nn.Linear(input_shape, output_shape)

    def forward(self, x):
        return self.fc(x)

def forward_fn(item):
    model, data = item
    return model.forward(data)

modules = [Model(input_shape=20, output_shape=30) for _ in range(k)]
data = tr.randn(k, B, 20)
seq = zip(modules, data)

resources = [TorchResource(f"cuda:{i}") for i in range(n)]

res_sequential = list(map(forward_fn, seq))
res_parallel = PoolResources(resources).map(forward_fn, seq)
Package: pools
PoolsPython library for Ethereum pools liquidity providers.InstallpipinstallpoolsUsageThepoolslibrary relies onweb3which requires theWEB3_INFURA_PROJECT_IDenvironment variable to be set.exportWEB3_INFURA_PROJECT_ID=00000000000000000000000000000000Then use the library to fetch portfolio data.>>>frompoolsimportuniswap>>>address="0x000000000000000000000000000000000000dEaD">>>portfolio_data=uniswap.portfolio(address)>>>portfolio_data.keys()dict_keys(['address','pairs','balance_usd'])>>>portfolio_data["balance_usd"]Decimal('1234.56')A Command line interface is also available.pools --help
Consider installing rusty-rlp to improve pyrlp performance with a rust based backend
usage: pools [-h] address

Liquidity provider portfolio stats.

positional arguments:
  address     Address

optional arguments:
  -h, --help  show this help message and exit
Package: pool-sharq
pool-sharqPython wrapper for the Broad Institute GPP'spoolq softwareUses theBeautifulSoupwebscraping library to check for the latest distribution of poolq from the Broad Institute's GPP. Downloads the latest distribution if it is not already downloaded.Installpipinstallpool_sharqUsageimportpool_sharqpoolq=pool_sharq.poolq(dir="/path/to/data/")# contains rows.txt and columns.txt along with fastq files.poolq.run()You can also download / use test data provided by the GPPpool_sharq.download_test_data()poolq=pool_sharq.poolq()# point to test datapoolq.run()
Package: poom
Open document files from your local file system in the free Microsoft
Office Online version on your browser.What?The app is primarily a dropbox client. When a document file is opened
using the app it uploads the file to your Dropbox and opens it from
there using Microsoft Office Online.TechnologyPython 3Python 2.7.8 (older version 0.0.2)The superbDropbox
APIfor
python.How?The app doesn’t have any permission over your existing Dropbox files. So
when you open a document with the app it first uploads the file to its
own directory on your Dropbox and then open the file from there using
the Microsoft Office online edition.File Syncing FeatureOnce you’ve edited the file in Dropbox the changes are going to be
temporarily saved there. The next time you open the same file using this
app it will show you the last modified version of the file, meaning if
the file was last modified on Dropbox it will open the Dropbox version
and sync your local file and vice versa.InstallationLatest version (Python 3)For system installationsudopipinstallpoomIf Python 3 is not the default interpreter in your system then you must
install the package using pip3sudopip3installpoomFor installing from github sourcegitclonehttps://github.com/redmoses/poom.gitcdpoom# for python2 as the system's default pythonsudopython3setup.pyinstall# for python3 as the system's default pythonsudopythonsetup.pyinstallInstalling version 0.0.2 (Python 2)For system installationsudopipinstallpoom=0.0.2UsageAfter installing the app, use the following command to open document
filespoom/path/to/office/document
Package: poooli
poooliA python library for printing on the Poooli thermal printer (unofficial).
Inspired by theblog posts by @cure_honeyon Poooli.exampleimportbluetoothfrompoooliimportPooolisocket=bluetooth.BluetoothSocket(bluetooth.RFCOMM)pli=Poooli(socket)pli.connect("YOUR:POOLI:MAC:ADDRESS",channel=1)pli.send_image("path/to/image.png",contrast=1.5,brightness=1.5)
Package: poopcount
inthas apopcountmethod, but why should numbers have all the fun?
This package adds apoopcountattribute on strings, which contains the (integer) amount of poop in the string.Installation:pipinstallpoopcountUsage:>>> "hello world".poopcount
0
>>> "💩".poopcount
1
>>> "💩".join("012345").poopcount
5
>>> s = "holy 💩, this one's 💩really 💩💩crappy💩💩💩"
>>> (s * 100).poopcount
700
Package: poopip
poopip: for when pip is too slow 💩poopip is a tiny python package installer/uninstaller
designed for working on local (i.e. already in your filesystem) pure python packagespoopip has very few features, but this makes it fast! 🔥get poopipassuming you have your favorite virtual environemnt already set up, you can runpipinstallpoopipor else you can clone this repo and issuepython poopip/poopip.py install poopip/usageforsome/path/to/a/packagethe following should work:# install to our current environmentpoopinstallsome/path/to/a/thing# install globally for current userpoop--userinstallsome/path/to/a/thing# install in "editable" modepoopinstall-esome/path/to/a/thing# uninstall package from current environmentpoopuninstallthing# uninstall user's global packagepoop--useruninstallthinggenerally poopip will take the name of the directory as the name of the package and
assume the code is either at thing/thing.py, or a directory thing/thing/ - it's on
our todo list to read the pyproject.toml for this.goalsfast: aims to be the fastest step in your dev/ci processsmall: single file under 1000 lines of codeportable: pure python, zero dependenciesreadable: reading the source code will tell you something about how installs workOn the portability front, currently poopip only officially supports linux - contributions are welcome.non-goalsrequirements: poopip doesn't care about your package's requirements, just use a requirements file and install them yourselfpypa specifications: poopip doesn't aim to implement all of the specifications where they conflict with its goalssetup.py: we have no intention of supporting setup.py or even dynamic pyproject fieldsNote that while poopip understands and can update or uninstall pip-installed packages the converse is not true. The reason is that poopip's metadata operates at the directory level, whereas pip relies upon a list of individual files - creating this list is slow with large packages, so we don't do it. Use poopip to unistall poopip-installed packages.benchmarksHere's how long it takes to install poopip itself (a zero-dependency, single python file) with various tools.
In the regular old install case, poopip is up to 300x faster than pip!interpretercommandtimepypy3.10pip install --no-deps .5.645spypy3.10pip install --no-deps -e .5.983spypy3.10flit install --deps none6.143spypy3.10flit install -s --deps none0.415spypy3.10python poopip.py install .0.136spypy3.10python poopip.py install -e .0.116spython3.11pip install --no-deps .1.981spython3.11pip install --no-deps -e .1.920spython3.11flit install --deps none2.008spython3.11flit install -s --deps none0.183spython3.11python poopip install .0.061spython3.11python poopip install -e .0.075sFlit's not really a package manager, but it is much faster than pip if we use symlinks (flit install -s --deps none), so if you're after a good dev experience and only want to install in editable mode I would highly recomend it as a more sane option.
Package: poopy
Poopy - An unusable map-reduce engine over AMQPInstallFrom PYPIInstall rabitMQpip install poopy(please use virtualenv)Download this filehttps://bitbucket.org/leliel12/poopy/raw/tip/example/iris.arff?at=defaultDownload this filehttps://bitbucket.org/leliel12/poopy/raw/tip/example/randomforest.pyand put in the same directory ofiris.arffFrom REPOInstall rabitMQClone thishttps://bitbucket.org/leliel12/poopyrepopip install-e.The archivesiris.arffandrandomforest.pyare inside inexamples/RunningOpen two consoles (consoleA, consoleB)InconsoleBrunpoopy deployamqp://localhostInconsoleAexecutepoopy uploadamqp://localhostpath/to/iris.arffpoopFS://iris.arffnow your file are uploaded to the “distributed file sistem”InconsoleArunpoopy runamqp://localhostpath/to/randomforest.py Script outYour output model are serialized in out/localtimeReading the modelIn python consolefrompoopyimportserializerswithopen("out/file")asfp:model=serializers.load(fp)TODO:Implement correctly timeouts.Implement an error exchange.Real distributed file system.More than one map or reduce.More output formats than b64-pkl.Not use the central node as main memory.Reorder some modules into packages
Package: poopylab
PooPyLab is a biological wastewater treatment software.Please see the project wiki for more details. Well, there has not been a whole
lot of details on the wiki yet, but more than what's on here.To install the PooPyLab package: pip3 install poopylabPlease see the tests/ folder for examples about how to use the available classes/methods to construct your own treatment plant process flow diagrams and get steady state results.Follow the project on Twitter: @poopylab .More detailed documentation:toogad.github.io/brownbookWiki/Tutorial:PooPyLab Wiki
Package: poormanschema
poormanschemaSimple and effective schema checker:>>> from poormanschema import *
>>> check({'first_name': 1}. [{'first_name': str, 'last_name': str}])
ValueError: {first_name} should be of type "str"It can also normalize data:>>> check(' 2016-03-23T12:23:12 ', OR(STRIP, ISO8601))
'2016-03-23T12:23:12'Or convert them on entry:>>> repr(check(['1.3'], [DECIMAL]))
[Decimal('1.3')]List of predicatescheck(data, schema, path=’’)- checkdataagainsschema, prefix error messages withpathOR(*schemas)- first schema to match is returnedANY- can be anythingAND(*schemas)- all schemas must matchMANDATORY(schema)- only useful on dict values, indicate the corresponding key is mandatory, all other keys are optionalRE(regexp, repl=None, count=0, flag=0)- value must be a string matchingregexpISO8601- value must be a string like‘2016-09-07T12:12:34’NORMALIZE(schema, convert)- apply schema then apply converter to the resultSTRIP- remove starting and ending spacesLOWER- lowercase the stringUPPER- uppercase the stringDECIMAL- convert a string into a decimal.Decimal objectExemple: SCIM 1.0 Core Schema of an User objectschema = {
    'schemas': MANDATORY([basestring]),
    'id': MANDATORY(basestring),
    'externalId': MANDATORY(basestring),
    'userName': MANDATORY(unicode),
    'name': MANDATORY({
        'formatted': MANDATORY(str),
        'familyName': str,
        'givenName': str,
        'middleName': str,
        'honorificPrefix': str,
        'honorificSuffix': str,
    }),
    'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User': MANDATORY({
        'employeeNumber': OR(STRIP, RE(r'^\d+$')),
        'costCenter': OR(STRIP, RE(r'^\d+$')),
    }),
    'meta': {
        'resourceType': 'User',
        'created': ISO8601,
        'lastModified': ISO8601,
        'version': RE(r'^(W\\)?"[^"]"$'),
        'location': str,
    }
}
Package: poor-smime-sign
A very poor tool to generate S/MIME signatures for arbitrary content & probably insecurely too.A quick example:>>>smime_sign(...signer_cert_path="/path/to/files/signer.cert",...signer_key_path="/path/to/files/signer.pem",...recipient_cert_path="/path/to/files/recipient.cert",...content="test",...output_format="PEM",...)FeaturesDoes S/MIME signatures.Verifies S/MIME signatures.Why?This utility library has single purpose - provide support for making
S/MIME signatures on Python2and 3, which currently lacks any
proper libraries for that purpose.The main use case it is built for: at work our system has to generate
Apple Passbook Pass files, which include an S/MIME
signature. Currently it is done usingM2Crypto.SMIME. While that
works - we want to migrate to Python3, and unfortunately for usM2Cryptois not fully supported.smime_signis a poor man’s
solution for this problem.Internally this does nothing more than callopenssl smime, so you
might want to see its docs too.Why not?This may be insecure.This may be slow if you are signing large blobs of text.APIsmime_sign(signer_cert_path, signer_key_path, cert_path, recipient_cert_path, content, output_format)Generates and returns signature string forcontentinoutput_format.All*_patharguments must be absolute
paths.contentmust be a string, not a path.Example to generate signature for Passbook manifest:>>>manifest_json="..."# JSON string with `manifest.json` content>>>signature=smime_sign(...signer_cert_path="/path/to/files/signer.cert",...signer_key_path="/path/to/files/signer.pem",...cert_path="/path/to/files/intermediate.cert",...recipient_cert_path=None,...content=manifest_json,...output_format="DER",...)smime_verify(signer_cert_path, content_path, signature_path, signature_format)Verifies acontent_pathfile against a signature atsignature_path.Note: this function was added to help in the tests only.CreditsTools used in rendering this package:Cookiecuttercookiecutter-pypackageHistory2.0.3 (2016-09-13)Change the licence fromAGPLv3toMIT.2.0.2 (2016-01-07)Fix documentation rendering on PyPI2.0.1 (2016-01-07)Added support for passing intermediate certificates.Made recipient certificate optional.Argument structure forsmime_signhas changed, therefore major version bump-up.1.0.0 (2015-11-27)First release on PyPI.
Package: poos
👉项目官网：https://www.python-office.com/👈👉本开源项目的交流群👈📚简介wftools是python自动化办公的小工具的代码合集。📦安装🍊pip 自动下载&更新pip install -i https://pypi.tuna.tsinghua.edu.cn/simple wftools -U📝功能📘官网：https://www.python-office.com/序号项目介绍代码地址1合同和财务系统源码2人脸门禁系统源码3商场管理系统源码4报表自动化 + 邮件自动发送源码5爬取招聘网站源码🏗️添砖加瓦📐PR的建议python-office欢迎任何人来添砖加瓦，贡献代码，建议提交的pr（pull request）符合一些规范，规范如下：参与项目建设的步骤：例如：你需要给python-office添加一个add方法。你的Github账户名为：demo于是你在./contributors新建了文件夹./demo新建了add.py文件，编辑你的代码编辑完成，提交pr到master分支（gitee或者GitHub，都可以）。可以注明你对自己功能的取名建议晚枫收到后，会对各位的代码进行测试后，合并后打包上传到python官方库📐代码规范注释完备，尤其每个新增的方法应按照Google Python文档规范标明方法说明、参数说明、返回值说明等信息，必要时请添加单元测试，如果愿意，也可以加上你的大名。python-office的文档，需要进行格式化。注意：只能格式化你自己的代码请直接pull request到master分支。master是主分支，表示已经发布pypi库的版本。未来参与人数增多，会开辟新的分支，请留意本文档的更新。我们如果关闭了你的issue或pr，请不要诧异，这是我们保持问题处理整洁的一种方式，你依旧可以继续讨论，当有讨论结果时我们会重新打开。🧬贡献代码的步骤在Gitee或者Github上fork项目到自己的repo把fork过去的项目也就是你的项目clone到你的本地修改代码commit后push到自己的库登录Gitee或Github在你首页可以看到一个 pull request 按钮，点击它，填写一些说明信息，然后提交到master分支即可。等待维护者合并🐞提供bug反馈或建议提交问题反馈时，请务必填写和python-office代码本身有关的问题，不进行有关python学习，甚至是个人练习的知识答疑和讨论。Github issue📌联系作者
Package: pop-archive
POP archive function provider for TAR, ZIP, RAR, etc.AboutThis project is app-merged into other POP projects in order to provide archive
handling functionality. See the POP docs for more information on how that
happens.What is POP?This project is built withpop, a Python-based
implementation ofPlugin Oriented Programming (POP). POP seeks to bring
together concepts and wisdom from the history of computing in new ways to solve
modern computing problems.For more information:Intro to Plugin Oriented Programming (POP)pop-awesomepop-createGetting StartedPrerequisitesPython 3.6+git(if installing from source, or contributing to the project)InstallationNoteIf wanting to contribute to the project, and setup your local development
environment, see theCONTRIBUTING.rstdocument in the source repository
for this project.If wanting to usepop-archive, you can do so by either
installing from PyPI or from source.Install from PyPIpipinstallpop-archiveInstall from source# clone repogitclonegit@<your-project-path>/pop-archive.gitcdpop-archive# Setup venvpython3-mvenv.venvsource.venv/bin/activatepipinstall-e.AcknowledgementsImg Shieldsfor making repository badges easy.
Package: popari
PopariPopari is a versatile framework for joint analysis and investigation of complex spatial transcriptomics datasets. Read the documentation (including installation instructions)here.:warning:Popari is still under active development.Check back in a bit for a more complete user experience!Dev InstructionsInstallpip install popariPublishingpip install hatch
pip install keyrings.alt

hatch build
hatch publishUsername:__token__Password:{API token for PyPI}TestsTo run the provided tests and ensure that SpiceMix can run on your platform, follow the instructions below:Download this repo.git clone https://github.com/alam-shahul/SpiceMixPlus.gitInstallpytestin your environment.pip install pytestNavigate to the root directory of this repo.Run the following command. With GPU resources, this test should execute without errors in ~2.5 minutes:python -m pytest -s tests/test_popari_shared.pyBuilding DocumentationAssuming you have CMake:Navigate todocs/.cd docs/Install Sphinx requirements.pip install -r requirements.txtClean and build.make cleanmake htmlPush to GitHub, and documentation will automatically build.