Saravanan666/pypi-org huggingface dataset:
Package: pony-database-facade
PonyORM Database object Facade. The package encapsulates the names of the parameters used in the low-level modules.Русская документацияInstallationpip install pony-database-facadeConstructorTheDatabaseFacadeconstructor and thebindmethod takes the following arguments:providerThe name of the database provider.
One of the list:sqlite,mysql,postgresororacle.
By default issqlite.dbnameThe name of the database.
If you are using SQLite, the name of the file in which SQLite will store the data and by default is:memory:.hostName of host to connect to.
By default islocalhost.portTCP port of database server.
By default is standard port.userUser to authenticate as.
By default isNone.passwordPassword to authenticate with.
By default isNone.charset (MySQL only)By default isutf8.create_db (SQLite only)Try to create the database if such filename doesn’t exists.
By default isTrue.*argsparameters required by the database driver.**kwargsparameters required by the database driver.# SQLite in memorydb=DatabaseFacade()# MySQL, localhost, no user, no password, used database blogdb=DatabaseFacade('mysql',dbname='blog')db=DatabaseFacade(provider='mysql',dbname='blog')# PostgreSQLdb=DatabaseFacade()db.bind('postgres',host='my.vps.com',user='anyone',password='anykey',dbname='blog')ConnectionTo connect to the database, use theconnectmethod.
This method takes the same arguments asgenerate_mapping, but the default forcreate_tablesisTrue.
This method also calls thebindmethod.db=DatabaseFacade()db.connect()Full examplefrompony.ormimportRequired,db_session,showfrompony_database_facadeimportDatabaseFacadedb=DatabaseFacade()classPerson(db.Entity):username=Required(str,50)db.connect()withdb_session:person_1=Person(username='Linus')show(person_1)
Package: pony-express
Artifact PonyExpress (or simply Pony) is an artifact repository and package manager that aims to simplify software modules integration into big projects. It is designed with native (read modern C++) development in mind but it is usefull everywhere there is an environment to setup in order to transform versioned data using any software.Note: As pony works well with binary components, the transformation function (the tool used to transform data) itself may be a packaged component.Pony use MongoDB as backend to store your packages and meta-informations so a running local or remote MongoDB database is needed in order to use pony. The pony’s MongoDB database is thepony_storeand the only collection it uses as a repository is namedpackages.You can perform two main operation from the pony command line:chargethe pony to deliver your artifact to clients.deliverdependencies of the working artifact to users.
Package: pony-indice
Pony Indice is a Django re-usable app to create a simple search engine for your
project.InstallInstall it as usual (pip coming):pip install pony-indiceAdd the app in yourINSTALLED_APPS:INSTALLED_APPS = (
   ...
   'pony_indice',
   ...
)And launch the migration to create the table:./manage.py migrateUsageThe usage is quite simple:from pony_indice import registry as indice_registry

@indice_registry.register()
class YourModel(models.Models):
   rank = models.IntegerField()Now your model is tagged as “tracked” and the following behaviors are added:Onpost_savesignals aLinkwill be created/updated in databaseOnpost_deletetheLinkwill be mark as “removed”(Update aren’t taken in account and may lead to broken URLs)Basicaly this app is based on the other decorated models, but you can easily
importpony_indice.models.Linkand add the link which you want, especialy
external ones.ToolsQuerySetTheLink’s queryset has the methodfilter_qmethod, which is a simple
filter looking if fieldsdisplayordescriptioncontain a string.
Useful to create easily any search tool.AdminOf course the admin interface is already configured.REST Frameworkpony_indice.contrib.rest_framework.serializers.LinkSerializerandpony_indice.contrib.rest_framework.viewsets.LinkViewsetsare here to play
quickly with Django REST Framework.
Package: pony-rest
pony-restA subset implementation ofPostgREST.You should readPostgRESTandPonyORMfirst.Installpip install pony-restExampleEditentities.py:frompony.ormimport*db=Database()classPerson(db.Entity):name=Required(str)age=Required(int)cars=Set('Car')classCar(db.Entity):make=Required(str)model=Required(str)owner=Required(Person)then:python -m pony_restor via wsgi:gunicorn pony_restHow to use this server to do CRUDT=localhost:3333# create new Personcurl-H'content-type: application/json'-d'{"name": "foo", "age": 10}'$T/person# read Person listcurllocalhost:18000/person# update Person where id is 1curl-H'content-type: application/json'-XPATCH-d'{"age": 10}'"$T/person?id=eq.1"# delete Person where id is 1curl-XDELETE"$T/person?id=eq.1"Connect your databaseInstall modulepyyaml, then create a configure file:database.yamlin your working directory, likes:provider: sqlite
filename: ":memory:"
create_db: true
create_tables: true...and seedatabase.yamlin this repo to find more.Note: only the first block configurations in yaml file is used for database,
you could leave the old configurations in next blocks.Lots TODO...
Package: pony-sayz
pony_sayzPony says the message that you pass as parameter.Free software: MIT licenseDocumentation:https://pony-sayz.readthedocs.io.FeaturesGiven a message you pony will say it to the console.Add more poniesCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-10-30)First release on PyPI.
Package: ponytail
PonytailOverviewPython "tail -F" like functionality, targeted for processing log data,
with a goal of being reliable and robust.Create an object to follow a file.Features:
- Detects if file is truncated and starts over at the beginning.
- Detects file rename and new file created (for log rotation).
- Continues reading old file after rotation to catch stragglers written there.
- Can write an optional "offset" file so it can pick up from where it left off.Arguments:Follow(filename, offset_filename=None, watch_rotated_file_seconds=300):filename: Filename to open and read data from.offset_filename: If given, a file name to write offset information to.  This file is written either
whenever the end of file is reached during reading, or when the "save_offset()" method is called.  If
you break out of the read loop (say because of Control-C), it is best to save the offset.watch_rotated_file_seconds: After detecting the file has been rotated, watch the old file for this
many seconds to see if new data has been written to it after the rotation.Follow().readline(none_on_no_data):none_on_no_data: If true, instead of sleeping and continuing, it will return None if data is not ready.Follow().save_offset()No argumentsExamplef=ponytail.Follow('/var/log/syslog')forlineinf.readlines():print(line.rstrip())More exhaustive example:f=ponytail.Follow('/var/log/syslog',offset_filename='/tmp/syslog.offset',watch_rotated_file_seconds=10)forlineinf.readlines():print(line.rstrip())The above will save the processed offset to a file, and later processing will pick up where the
previous run left off.  It will also stop watching the old file after a rotation, after 10 seconds
(default is 300).
Package: ponytor
PonytorA small command line utility and python lib to run automated things when files changeInstallationsudopipinstallponytorUsage - as command line toolSyntax:ponytorPATH_TO_WATCHCOMMAND_TO_RUNExample: this will run the working_on_this.py file each time it’s changed (saved).ponytorworking_on_this.py"python working_on_this.py"Usage - as a python libThe usage is really simple:fromponytorimportmonitormonitor('/path/to/monitor.txt',function_to_run_on_change)Example: the same as the command line usage examplefromosimportsystemfromponytorimportmonitordefmy_callback():system('python working_on_this.py')monitor('working_on_this.py',my_callback)Or, a simpler way:fromosimportsystemfromponytorimportmonitor,build_command_callbackmonitor('working_on_this.py',build_command_callback('python working_on_this.py'))
Package: pony-traffic
[![Build Status](http://img.shields.io/travis/kylef/django-request/master.svg?style=flat)](https://travis-ci.org/kylef/django-request)django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on who is online etc.![Traffic graph](docs/graph.png)As well as a site statistics module, with the active_users template tag and manager method you can also use django-request to show who is online in a certain time.Request.objects.active_users(minutes=15)To find the request overview page, please click on Requests inside the admin, then “Overview” on the top right, next to “add”.InstallationPut‘request’in your INSTALLED_APPS setting.Run the commandmanage.py syncdb.Addrequest.middleware.RequestMiddlewaretoMIDDLEWARE_CLASSES. If you usedjango.contrib.auth, place the RequestMiddleware after it. If you usedjango.contrib.flatpagesplacerequest.middleware.RequestMiddlewarebefore it else flatpages will be marked as error pages in the admin panel.Make sure that the domain name in django.contrib.sites admin is correct. This is used to calculate unique visitors and top referrers.Detailed documentationFor a detailed documentation of django-request, or how to install django-request please see: [django-request](https://django-request.readthedocs.org/en/latest/) or the docs/ directory.
Package: pony-unitfield
This project aims to add helpers for FloatField with:Specify unit (meters, feet, bytes) as field’s metadataSpecify a number of decimal (withoutDecimalField)Addget_FIELD_displaymethod on modelExamplefrom django.db import models
from pony_unitfield.fields import UnitField

class MyModel(models.Model):
    default = UnitField(unit='foo', null=True)

    no_decimal = UnitField(unit='bar', decimal=0, null=True)
    one_decimal = UnitField(unit='ham', decimal=1, null=True)

    non_spaced = UnitField(unit='bone', spaced_display=False, null=True)
Package: ponywhoosh
Make your database over PonyORM searchable.Install package, import and start adding what fields of your models in your database, you want to search.Please take a look to the official documentation up to date:http://pythonhosted.org/ponywhoosh/https://pypi.python.org/pypi/ponywhooshInstallationpipinstallponywhooshor use the develop (unstable) version:gitclonehttps://github.com/jonaprieto/ponywhoosh.gitcdponywhooshpythonsetup.pyinstall
Package: pony-wtf
Pony-WTF is an integration library for Ponyorm and WTF-Forms.Installationpipinstallpony-wtfUsage# imports from pony-wtf
from pony_wtf import model_form
from pony_wtf.utils import get_attrs_dict


# declare database entities
class User(db.Entity):
    id = PrimaryKey(int, auto=True)
    email = Required(str, unique=True)
    age = Optional(int)

form_cls = model_form(User, )
form = form_cls()

def get_form_values(entity, form_data):
    """ Get form values and return them as dict """
    d = {}
    adict = get_attrs_dict(entity)
    for k in adict:
        if k in form_data:
            d[k] = form_data.get(k)
    return d


@app.route('/create_user', methods=['GET', 'POST'])
def create_user():
    form_cls = model_form(User)
    form = form_cls()  # instaniatte the class

    if request.method == 'POST' and form.validate_on_submit():
        data = get_form_values(User, form.data)
        with db_session:
            User(**data)
        flash("User Created", "success")
        return redirect(url_for("index"))
    return render_template('create_user.html',  form=form)You can render the form as you prefer in the jinjaHTML. Ex:{# UseFlask-WTFandFlask-Bootstrap#}     {{ wtf.quick_form(form) }}Requirementspony
pony_wtf
Flask_WTF
WTFormsContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.Please make sure to update tests as appropriate.License[MIT]
Package: poocr
👉项目官网：https://www.python-office.com/👈👉本开源项目的交流群👈📚简介poocr 是快速调用腾讯云AI平台功能的接口合集。poocr所有功能的实现，都依托于腾讯云的文字识别，如果是小白用户，可以扫码下图，免费开通~📦安装🍊pip 自动下载&更新pip install -i https://mirrors.aliyun.com/pypi/simple/ poocr -U📝功能📘Python自动化办公的官网：https://www.python-office.com/💻所有功能的列表👉点我直达常见问题如何配置poocr-config.toml？第一步，你需要开通腾讯云的发票识别功能（收费功能，很便宜）：点我直达第二步，你需要设置一个子账户（不花钱）：点我直达如果以上配置，自己不懂技术，难以实现的话，可以付费找我帮你配置。我的微信，点击直达👉CoderWanFeng，99元/次，一次就够了。我有自己的工作，都是打工人，拒绝白嫖哈，多谢理解。🏗️添砖加瓦📐PR的建议poocr欢迎任何人来添砖加瓦，贡献代码，建议提交的pr（pull request）符合一些规范，规范如下：🧬贡献代码的步骤在Gitee或者Github上fork项目到自己的repo把fork过去的项目也就是你的项目clone到你的本地修改代码commit后push到自己的库登录Gitee或Github在你首页可以看到一个 pull request 按钮，点击它，填写一些说明信息，然后提交到master分支即可。等待维护者合并🐞提供bug反馈或建议提交问题反馈时，请务必填写和python-office代码本身有关的问题，不进行有关python学习，甚至是个人练习的知识答疑和讨论。Github issue📌联系作者
Package: poodle
PoodlePoodle is an tool for Mutation Testing your Python projects.Mutation Testing proves the quality of your test suite by introducing bugs in your application, then verifying if your test cases can find the bug.FeaturesThe goal of Poodle is to be highly efficient, configurable, and extendable.Multi-Threaded executionHighly Configurable (toml and py)Plug in custom codeOutput reports in Text, HTML, and JSONQuick StartInstallation:pip install poodle --upgradeUsage: poodle [OPTIONS] [SOURCES]...

  Poodle Mutation Test Tool.

Options:
  -c PATH             Configuration File.
  -q                  Quiet mode: q, qq, or qqq
  -v                  Verbose mode: v, vv, or vvv
  -w INTEGER          Maximum number of parallel workers.
  --exclude TEXT      Add a glob exclude file filter. Multiple allowed.
  --only TEXT         Glob pattern for files to mutate. Multiple allowed.
  --report TEXT       Enable reporter by name. Multiple allowed.
  --html PATH         Folder name to store HTML report in.
  --json PATH         File to create with JSON report.
  --fail_under FLOAT  Fail if mutation score is under this value.
  --version           Show the version and exit.
  --help              Show this message and exit.Documentation:https://poodle.readthedocs.io/ContributeIssue Tracker:https://github.com/WiredNerd/poodle/issuesSource Code:https://github.com/WiredNerd/poodleSupportIf you are having issues, please let us know.I can be contacted at:pbuschmail-poodle@yahoo.comOr by opening an issue:https://github.com/WiredNerd/poodle/issuesLicenseThe project is licensed under the MIT license.
Package: poodle-test
!!! ALPHA BUILD !!!The current version is an alpha build.  Intended functionality for the first release is still a work in progress.PoodlePoodle is an tool for performing Mutation Testing on Python projects.FeaturesMulti-Threaded Mutation TestingConfigurablePluggableQuick StartInstallation:pip install poodle-test --upgradeRunning:poodleDocumentation:https://poodle.readthedocs.io/ContributeIssue Tracker:https://github.com/WiredNerd/poodle/issuesSource Code:https://github.com/WiredNerd/poodleSupportIf you are having issues, please let us know.I can be contacted at:pbuschmail-poodle@yahoo.comOr by opening an issue:https://github.com/WiredNerd/poodle/issuesLicenseThe project is licensed under the MIT license.
Package: pooetry
What is this?pooetryis a python wrapper utility with a very narrow use case.  If you don't know what it does you probably don't need it 🙃What does it do?This utility automagically fixes issues caused by these factors combined:poetry 0.12.*pip 19.*Use a private package repo which requires authenticationHave special characters in your credentials for this private repocommonly caused by having an email as a username (the '@' is not URL legal)If you are stuck in this situation you'll find yourself changing the credentials between quoted and non-quoted assomepoetrycommands only work with quoted creds whileothersonly work with non-quoted creds.How do I use it?InstallpoetryBest to follow theinstall procedure on the officialpoetryrepoInstallpooetryYou can use the package manager of your choice for this,pip install pooetryfor exampleWhen you want to runpoetrysimply usepooetryinstead.  All the commands and options will be passed through.
Package: poofapi
# **Poof API Python Library**This is a Python library for interacting with the Poof API. It provides a convenient way to create invoices, charges, fiat invoices, fiat charges, transactions, payouts, wallets, balances, prices, webhooks, products, gas prices, contracts, and checkouts through the Poof API.## InstallationTo install the Poof API Python library, simply use pip:```pip install poofapi```## UsageHere's an example of how to use the Poof API Python library to create a new invoice:````from poofapi.api import PoofAPI# Initialize the Poof API client with your API keyapi = PoofAPI(api_key='your_api_key')# Create a new invoiceinvoice = api.create_invoice(crypto='BTC', amount=0.001, metadata={'order_id': '1234'})# Print the invoice detailsprint(invoice)````## LicenseThis library is released under the MIT License. Please see the LICENSE file for more information.
Package: poof-backup
% poof(1) Version 9.9.9 | Secure cloud storage backup documentationNamepoof- 2-way secure data sync/backup/restore against cloud storage.DescriptionThe poof project superseded the poof-backup project on 01.Dec.2021.  If you
installed poof-backup please remove it and install poof instead.  On Python-only
installations use:pip install -U poofHomebrew and apt installers are not affected by the migration to the new name.Backup of local file system directories to cloud storage or other storage, in a
secure manner, and preserving the original files' attributes for later recovery.The poof! tool offers additional security options:Secure delete the local file system files upon successful process completionEncrypt the remote copiesEliminates all traces of itself in the local file systemBugsSee GitHub issues:https://github.com/poof-backup/poof/issuesAuthorEugene "pr3d4t0r" Ciurana and the poof backup contributors <poof.project AT cime.net>See alsohttps://pypi.org/project/poof
Package: poofpy
Poof Python API WrapperInstallingpip install poofpyget your api keylogin topoofcreate your api key fromhereExamplesSet your api keyfrompoofpyimportPoofclient=Poof("your api key here")Creating crypto invoiceinvoice=client.create_crypto_invoice(10,CryptoCurrencies.Bitcoin,Currency.USD)print(invoice.payment_link)Creating crypto chargecharge=client.create_crypto_charge(10,CryptoCurrencies.Bitcoin,Currency.USD)print(charge.address)Creating fiat invoiceinvoice=client.create_fiat_invoice(100,PaymentMethod.Paypal,Currency.USD,"https://www.poof.io","https://www.poof.io")print(invoice.payment_link)Creating fiat chargecharge=client.create_fiat_charge(100,PaymentMethod.Paypal,Currency.USD,"https://www.poof.io","https://www.poof.io")print(charge.payment_link)Getting Balanceobj=client.FetchWalletBalance(CryptoCurrencies.Litecoin)print(obj.balance)Payoutclient.create_payout(10,CryptoCurrencies.Litecoin,"Lc9oPPPLkUsjDTAH13wAcPRKJyNj9gydwC")
Package: poolbase
pypool=====a simple connection poolexpand pypool~~~~~~~~~~~~~must be implemented pypool.connection.Connection all methoda hbase extension like this:https://github.com/duanhongyi/hbaseSample usage~~~~~~~~~~~~::from hbase import Connectionpool = ConnectionPool(size,connection_klass=Connection,**{'host':'127.0.0.1','port':9090,})with pool.connection() as conn://do somethingpassDownload~~~~~~~~* https://github.com/duanhongyi/pypool
Package: poolbox
poolbox (Pdf tOOLBOX) : manipulate PDF over the web.
poolbox is actually a web wrapper around various PDF libraries.InstallationDependenciespoolbox depends on wkhtmltopdf, poppler and pdftk.On debian-based distribs :$ sudo apt-get install wkhtmltopdf poppler-utils pdftkProduction-readyInstallation using pip :$ pip install poolboxDone.DevelopementCreate and activate a virtual env :$ virtualenv myvenv$ cd myvenv$ . bin/activateClone this repository :$ git clonegit@gitlab.com:atreal/poolbox.git$ cd poolboxInstall egg and depencies :$ python setup.py developYou’re good to go.Run the servicesRun pyramid in waitress :$ pserve poolbox.iniWeb Services are available localy on :http://localhost:6544/WS_NAMEDevelopementRun pyramid in waitress, with auto reload when file are modified :$ pserve poolbox.ini –reloadYou can allow global access by switching host address to 0.0.0.0 from poolbox.ini.ServicesTODO : list services and associated functionalities.OpenAPIOpenAPI JSON is available at :http://localhost:6544/__api__TestsTo run the tests, you have to install the egg in dev mode :$ python setup.py developThen launch the app :$ pserve poolbox.iniIn another terminal, run the tests :$ cd tests$ python test_pdf_toolbox.py
Package: poolcontrolpy
poolcontrolpyPackage for accessing nodejs-poolController for use with a planned Home Assistant integration.Installation$pipinstallpoolcontrolpyUsageConfigure pool controller and confirm successful connection.importasyncioimportaiohttpfrompoolcontrolpy.poolcontrolpyimportControllerasyncdefcheckconnection():asyncwithaiohttp.ClientSession()asclient:controller=Controller(client,"10.0.20.13",4200)returnawaitcontroller.checkconnect()resp=asyncio.run(checkconnection())print(resp)Note: This example uses 'asyncio.run' so it cannot be called when another asyncio event loop is running in the same thread.ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepoolcontrolpywas created by Kevin Robinson. It is licensed under the terms of the MIT license.Creditspoolcontrolpywas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: poolcop
Asynchronous Python client for thePoolCopilot API.AboutA python package to interact with aPoolCopdevice.InstallationpipinstallpoolcopUsageimportasyncioimportjsonfrompoolcopimportPoolCopilotAPI_KEY="xxxxxxxxxxxxxxxxxxxxxxx"asyncdefmain()->None:"""Show example on fetching the status from PoolCop."""asyncwithPoolCopilot(api_key=API_KEY)asclient:status=awaitclient.status()print(json.dumps(status,indent=2))if__name__=="__main__":asyncio.run(main())
Package: pool-cue
pool-cueTools to make it easier to run and communicate witharqjob queues:Reusable config for the workers and queueAbility to stop a job from being added to the queue if it's already queuedTool to run tasks in sub-threads (with async function support)For more details on arq, check out theofficial documentation.InstallationInstall the package:pipinstallpool-cue# orpoetryaddpool-cueUsageConfigure the worker:# example/main.pyfrompool_cueimportQueueSettings,create_workerfromexampleimporttasks# python module with tasks (functions)settings=QueueSettings(...)Worker=create_worker(settings=settings,tasks=tasks)# example/__init__.pyfromexample.mainimportWorkerStart the worker:arqexample.WorkerAnd push jobs to the queue:frompool_cueimportQueuefromexample.mainimportsettingsasyncwithQueue(settings=settings)asqueue:awaitqueue.push_job(_func='test_task',extra_keyword_argument="foo")Example worker output:12:28:57: Starting worker for 2 functions: test_child_task, test_task
12:28:57: redis_version=7.0.10 mem_usage=1.46M clients_connected=2 db_keys=0
12:29:07:   0.19s → test_task:test_task(extra_keyword_argument='foo')
12:29:07:   0.00s ← test_task:test_task ●
Package: pooled-multiprocessing
more_multiprocessing====Creating multiprocessing process is high cost, it takes 300ms~500ms.So we pre-create processes, it's very fast.Install---```commandlinepip install git+http://github.com/namuyan/pooled_multiprocessing# orpip install pooled_multiprocessing```Usage---Please look for [test_sync.py](test_sync.py) and [test_async.py](test_async.py).License---MITAuthor---[@namuyan](https://twitter.com/namuyan_mine)
Package: pooled-pika
Noticejust support twisted connection nowUsagesample:# with connectionfrompikaimportURLParametersfrompooled_pikaimportPooledConnAMQP_PARAM=URLParameters('amqp://user:pwd@amqpserver')pooled_conn=PooledConn(AMQP_PARAM)d=pooled_conn.acquire()d.addCallbacks(_on_conn,_on_err_conn)# you will get a TwistedProtocolConnection objectd.addErrback(_on_err)d.addBoth(pooled_conn.release)# must release what acquired anywayor:# with channelfrompikaimportURLParametersfrompooled_pikaimportPooledConnAMQP_PARAM=URLParameters('amqp://user:pwd@amqpserver')pooled_conn=PooledConn(AMQP_PARAM)d=pooled_conn.acquire(channel=True)d.addCallbacks(_on_channel,_on_err_channel)# you will get a TwistedChannel objectd.addErrback(_on_err)d.addBoth(pooled_conn.release)# must release what acquired anyway