Saravanan666/pypi-org huggingface dataset:
Package: pwbm-api-client
Python client for PWBM-APIRequirementsTool implemented for Python version >= 3.8Installation instructionInstall Python package:Execute following command:pipinstallpwbm-api-clientImport package and use itfrompwbm_api.clientimportClientfrompwbm_apiimportSeries,TableExamples of usage:frompwbm_api.clientimportClientfrompwbm_apiimportSeries,Tableclient=Client()# series filtration exampleresponse=client.get(Series.query().filter(frequencies=['Annual'],relates_to_table=True,sources=['Internal Revenue Service'],tags=[{'name':'Metric'}],uoms=['Items'],date_range='2015-12-31--2020-01-01').order_by(field='name',order='desc')# permitted field name: 'name', 'uom', 'frequency', 'source', 'start_date', 'end_date')forseriesinresponse:print(series)# series search example by multiple search queriesresponse=client.get(Series.query(search_text=['Pennsylvania','Business Application']).filter(relates_to_table=True,sources=['Centers for Disease Control and Prevention'],frequencies=['Annual']).filter(uoms=['Items'],tags=[{'name':'State'}]).order_by(field='name',order='desc'# permitted field name: 'name', 'uom', 'frequency', 'source', 'start_date', 'end_date'))forseriesinresponse:print(series)# series search by neum exampleresponse=client.get(Series.query(neum='Nebraska, Pneumonia and COVID-19 Deaths').filter(sources=['Centers for Disease Control and Prevention'],relates_to_table=True).filter(frequencies=['Annual'],uoms=['People'],date_range='2020--2022').order_by(field='name')# permitted field name: 'name', 'uom', 'source', 'start_date', 'end_date', 'row_ver')forseriesinresponse:print(series)# get series by ids exampleresponse=client.get(Series.query(ids=['6cf73546-b8a9-4dbc-978a-4ff91bff8b07','faf42b55-52b3-4ac1-9824-b3126c09ac41',]).filter(sources=['CDC'],frequencies=['Weekly Ending Sunday'],uoms=['People'],date_range='2020-01-01--2020-06-01').order_by(field='name')# permitted field name: 'name', 'uom', 'source', 'start_date', 'end_date')forseriesinresponse:print(series)# tables filtration exampleresponse=client.get(Table.query().filter(sources=['Fire Administration']).order_by(field='name')# permitted field name: 'name', 'source')fortableinresponse:print(table)# tables search example by multiple search queriesresponse=client.get(Table.query(search_text=['Other Residential Building']).filter(sources=['Fire Administration']).order_by(field='name',order='desc')# permitted field name: 'name', 'source')fortableinresponse:print(table)# get tables by ids exampleresponse=client.get(Table.query(ids=['b9746501-aed4-4287-b109-ecb6c6ad39ad','579b9e3f-cae4-4da0-81c6-234c334e769a']).filter(sources=['Fire Administration']).order_by(field='source',order='asc')# permitted field name: 'name', 'source')fortableinresponse:print(table)# tables search by neum exampleresponse=client.get(Table.query(neum='Pennsylvania').filter(sources=['Internal Revenue Service']).order_by(field='name',order='desc')# permitted field name: 'name', 'source', 'row_ver')fortableinresponse:print(table)
Package: pwbm-sp-dev
PWBM Local Development ToolsRequirementsTool implemented for Python version 3.9Installation instruction:Virtual environment managerpipenvdocumentation:pipenvFirst the manager itself should be installed:python3.9-mpipinstallpipenvCreating virtual environmentIn terms of pipenv, virtual environment is just a folder. That means, that all you have to do is to create a folder and run
following command:pipenvinstall--python3.9A virtual environment will for Python version 3.9 will be created.Virtual environment usageThere are two ways to work with virtual environment:It can be activated by following command:pipenvshellAfter activating the environment command may be run aspwbm <command>Running command without activating environment:pipenvrunpwmb-sp<command>Note: Both this option assume that current folder is the folder with virtual environmentInstall Python package:After creating virtual environment, execute following command:pipenvinstall--python3.9pwbm-sp-devThis will install the latest package versionVerify installationpipenvrunpwbm-spIf everything was installed correctly, help message will be printedInstalling legacy versionsToolset supports installation of legacy versions.Installation of particular version:pipenvinstall--python3.9pwbm-sp-dev==0.0.0Where0.0.0is replaced with package versionNOTE: It's NOT possible to have multiple version of the package within same virtual environment.
If you want to use multiple versions - install them in separate environments.FeaturesPWBM local development tools has following feature:Create boilerplatepwbm-spboilerplate/path/to/file.pyThis command will create a Python file in specified locationRun scraper scriptpwbm-sprun/path/to/store/file.pyThis command will run file from specified location. If custom scraper needs parameters, they can be provided in a following way:pwbm-sprun/path/to/input/file.py-pparam1=value1param2=value2Wrap scraper script into pipeline configurationpwbm-spwrap--input/path/to/input/file.py--output/path/to/output/file.jsonOmitting--outputparameter will result printing pipeline configuration into console.If custom scraper needs parameters, they can be provided in a following way:pwbm-spwrap--input/path/to/input/file.py-pparam1=value1param2=value2
Package: pwbus-request
pwbus-requestAPI to make request for PWBus.Install:$ pip3 install pwbus-requestBootle request@get('/ping')
def ping():
    print("PING (request)")
    sys.stdout.flush()
    try:
        pwbus = PwbusBootleRequest(
            request=request,
            response=response,
            channel="scarlet-web-channel", 
            task_id="pwbus.Pwbus_ping_task"
        )

        headers = pwbus.getHeaders()

        if pwbus.isRetry():
            payload = {}
        else:
            payload = {'value': 'PING'}

        resp = pwbus.post(payload, headers)
        return json.dumps({'success': True, 'data': resp["data"]})

    except:
        traceback.print_exc()
        sys.stdout.flush()
        return json.dumps({'success': False})Flask requestTODO
Package: pwcheck
docstestspackagePython Password CheckerFree software: GNU Lesser General Public License v3 (LGPLv3)Installationpip install pwcheckYou can also install the in-development version with:pip install https://github.com/Itotutona/pwcheck/archive/master.zipDocumentationhttps://pwcheck.readthedocs.io/DevelopmentTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append tox
Package: pwclient
pwclientis a VCS-agnostic tool for interacting withPatchwork, the
web-based patch tracking system.InstallationThe easiest way to installpwclientand its dependencies is usingpip. To
do so, run:$python3-mpipinstallpwclientYou can also installpwclientmanually. First, install the required
dependencies. On Fedora, run:$sudodnfinstallpython-pbrOn Ubuntu, run:$sudoapt-getinstallpython-pbrOnce dependencies are installed, clone this repo and runsetup.py:$gitclonehttps://github.com/getpatchwork/pwclient$cdpwclient$python3-mpipinstall--user.Getting StartedTo usepwclient, you will need a.pwclientrcfile, located in your home
directory ($HOMEor~). You can point to another path with the
environment variablePWCLIENTRC. Patchwork itself provides sample.pwclientrcfiles for projects at/project/{projectName}/pwclientrc/.
For example,hereis the.pwclientrcfile for Patchwork itself.DevelopmentIf you’re interested in contributing topwclient, first clone the repo:$gitclonehttps://github.com/getpatchwork/pwclient$cdpwclientCreate avirtualenv, then install the package ineditablemode:$virtualenv.venv$source.venv/bin/activate$python3-mpipinstall--editable.DocumentationDocumentation is available onRead the Docs
Package: pw-database-url
This simple Python utility allows you to utilize the12factorinspiredDATABASE_URLenvironment variable to configure your Peewee ORM application.All credit goes to Kenneth Reitz for this one, as it’s a direct
port of his dj-database-url utility for Django apps.UsageConfigure your database fromDATABASE_URL:DATABASE = pw_database_url.config()Parse an arbitrary Database URL:DATABASE = pw_database_url.parse('postgres://...')Supported databasesSupport currently exists for PostgreSQL, MySQL and SQLite.In addition, support for Postgres specific features can be enabled by using thepostgresext://pattern. This will give you access to the HStoreField type.
See thepeewee docsfor usage information and examples.SQLite connects to file based databases. The same URL format is used, omitting
the hostname, and using the “file” portion as the filename of the database.
This has the effect of four slashes being present for an absolute file path:sqlite:////full/path/to/your/database/file.sqlite.
Package: pwdc
A simple python CLI for your on-premise instance of Play With DockerCreate a 5 node Cluster Swarm in 5 seconds!PurposeThis is a CLI that allows you to create, connecte to, view, and delete
instances of Play-With-Docker.You Need to have an instance of [Play-With-Docker](https://github.com/franela/play-with-docker) without the Capcha test.The Goal of this project is to allow you or your users to quickly create ready to uses clusters swarm, and uses it without
leaving your terminal.InstallationThe easiest way is to install from Pypi library:$ pip install pwdcUsageYou can just uses the following commands to create and use your cluster:$ pwdc init --pwd-url=http://<your-pwd-server>Initialise the pwdc configuration file in ~/.pwdc.
You need to update the ~/.pwdc value with the url of your PWD instance if not given the–pwd-urlparameter:$ pwdc createThis will uses the PWD instance from your~/.pwdcfile, then :create a PWD sessioncreate 5 nodesinit a swarm with a master on node1join the swarm from the node2 to node5provides informations on your clusterThe Cluster is ready to uses, just point your docker CLI on the new Swarm:$ eval $(pwdc env)
$ docker info>From then, you can manipulaite the swarm cluster with your docker or docker-compose CLI:$ pwdc infoShow you the informations about your PWD session.You can have multiple PWD session, this is manage with the–session_fileparameter, which locally store your PWD session informations.After a while, the session will be aumatically deleted, but you can also delete it manually when you are done with your session:$ pwdc delete
$ eval $(pwdc env -u)the last eval if to reset your docker client configContributionIf you’ve cloned this project, and want to install the library (and all
development dependencies), the command you’ll want to run is:$ pip install -e .[test]If you’d like to run all tests for this project (assuming you’ve written
some), you would run the following command:$ python setup.py testThis will triggerpy.test, along with its popularcoverageplugin.Lastly, if you’d like to cut a new release of this CLI tool, and publish it to
the Python Package Index (PyPI), you can do so
by running:$ python setup.py sdist bdist_wheel
$ twine upload dist/*This will build both a source tarball of your CLI tool, as well as a newer wheel
build (and this will, by default, run on all platforms).Thetwine uploadcommand (which requires you to install thetwinetool) will then securely upload your
new package to PyPI so everyone in the world can use it!CréditThis Works is based on the [skele-cli](https://github.com/rdegges/skele-cli) python cli project skeleton
and uses the powerfull opensource project [Play-With-Docker](https://github.com/franela/play-with-docker).
Package: pwdlib
pwdlibModern password hashing for PythonDocumentation:https://frankie567.github.io/pwdlib/Source Code:https://github.com/frankie567/pwdlibQuickstartpipinstall'pwdlib[argon2]'frompwdlibimportPasswordHashpassword_hash=PasswordHash.recommended()hash=password_hash.hash("herminetincture")password_hash.verify(hash,"herminetincture")# TrueWhypwdlib?For years, the de-facto standard to hash passwords waspasslib. Unfortunately, it has not been very active recently and itsmaintenance status is under question. Starting Python 3.13,passlibwon't work anymore.That's why I decided to startpwdlib, a password hash helper for the modern Python era. However, it'snot designed to be a complete replacementforpasslib, which supports numeroushashing algorithms and features.✅ GoalsProvide an easy-to-use wrapper to hash and verify passwordsSupport modern and secure algorithms like Argon2 or Bcrypt❌ Non-goalsSupport legacy hashing algorithms like MD5Implement algorithms directly — we should only rely on existing and battle-tested implementationsDevelopmentSetup environmentWe useHatchto manage the development environment and production build. Ensure it's installed on your system.Run unit testsYou can run all the tests with:hatchruntestFormat the codeExecute the following command to apply linting and check typing:hatchrunlintPublish a new versionYou can bump the version, create a commit and associated tag with one command:hatchversionpatchhatchversionminorhatchversionmajorYour default Git text editor will open so you can add information about the release.When you push the tag on GitHub, the workflow will automatically publish it on PyPi and a GitHub release will be created as draft.Serve the documentationYou can serve the Mkdocs documentation with:hatchrundocs-serveIt'll automatically watch for changes in your code.LicenseThis project is licensed under the terms of the MIT license.
Package: pwea
PweaPwea is a simple weather tool written in Python, utilizing theWeather APIto source current weather information.Pwea uses therequestsandrichlibraries to retrieve and display weather data.How it worksPass a desired location topweato retrieve a readout of the current weather conditions.Use it like this:pwea springfield MAOr, pass-t forecastto view the forecast.Unit of measurement defaults to metric. Pass-u imperialor--unit imperialto view in imperial.InstallationYou can install pwea from PyPi, or build it from source.Pypipip install pweaBuilding from sourceClone the repository:git clone https://gitlab.com/jeffreybarfield/pwea.gitInstall usingsetuptools:python3 setup.py installCreditI created this tool to educate myself on therichlibrary. I was originally inspired by thepwyproject.LicenseCopyright © 2021 Jeff Barfield.
Package: pwebarc-dumb-dump-server
What?pwebarc_dumb_dump_server.py: a verydumbsimple archiving server forPrivate Web Archive (pwebarc)pWebArc browser extension.
This thing is less than 200 lines of pure Python that only uses the Python's standard library and nothing else.
You could be running it already.Why?This was made for easyQuickstart.
Ideally, you would use something smarter than this (when I publish it), but this will work fine as a starting point.QuickstartInstallationYou can run this without installing:./pwebarc_dumb_dump_server.py --helpAlternatively, install with:pip install pwebarc-dumb-dump-serverand run aspwebarc-dumb-dump-server --helpAlternatively, install it via Nixnix-env -i -f ./default.nixUsageusage: pwebarc_dumb_dump_server.py [-h] [--version] [--host HOST]
                                   [--port PORT] [--root ROOT]
                                   [--default-profile NAME]
                                   [--ignore-profiles] [--no-cbor]

Simple archiving server for pWebArc. Dumps each request to
`ROOT/<profile>/<year>/<month>/<day>/<epoch>_<number>.wrr`.

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --host HOST           listen on what host/IP (default: 127.0.0.1)
  --port PORT           listen on what port (default: 3210)
  --root ROOT           path to dump data into (default: pwebarc-dump)
  --default-profile NAME
                        default profile to use when no `profile` query
                        parameter is supplied by the extension (default:
                        `default`)
  --ignore-profiles     ignore `profile` query parameter supplied by the
                        extension and use the value of `--default-profile`
                        instead
  --no-cbor             don't load `cbor2` module, disables parsing of input
                        data
Package: pweb-auth
In the name of God, the Most Gracious, the Most Merciful.PWebAuthDocumentationInstall and update usingpip:pipinstall-Upweb-authPlease findthe Documentationwith example fromhmtmcse.comDonateBangla Fighterdevelops and supports PWebAuth and the libraries it uses. In order to grow
the community of contributors and users, and allow the maintainers to devote more time to the projects.ContributingFor guidance on setting up a development environment and how to make a contribution to PWebAuth, see the contributing guidelines.LinksChanges :https://opensource.banglafighter.org/pweb/pweb-authPyPI Releases :https://pypi.org/project/pweb-authSource Code :https://github.com/banglafighter/pweb-authIssue Tracker :https://github.com/banglafighter/pweb-auth/issuesWebsite :https://www.banglafighter.com/open-source
Package: pwebb
In the name of God, the Most Gracious, the Most Merciful.PWebBPython Web Boot (PWebB). PWebB is a DRY full-stack framework based on Flask micro web framework.DocumentationInstall and update usingpip:pipinstall-UpwebbCreate project using CLIpwebcliprojectinit-n<specify_project_name>It will automatically create a project with the name. For example the project name isexamplethen it will create
an example directory and initialize the project in it.Run the projectcd<specify_project_name># If windows then active the virtual environment using below commandvenv\Scripts\activate# For Linux or MacOSsourcevenv\bin\activate# Run project using below commandpythonpweb_app.pyThe project will run inhttp://127.0.0.1:1212Please findthe Documentationwith example fromhmtmcse.com/pwebbDonateBangla Fighterdevelops and supports PWeb and the libraries it uses. In order to grow
the community of contributors and users, and allow the maintainers to devote more time to the projects.ContributingFor guidance on setting up a development environment and how to make a contribution to PWeb, see the contributing guidelines.LinksChanges :https://opensource.banglafighter.org/pweb/pwebPyPI Releases :https://pypi.org/project/pwebbSource Code :https://github.com/banglafighter/pwebIssue Tracker :https://github.com/banglafighter/pweb/issuesWebsite :https://www.problemfighter.com/open-source
Package: pweb-cli
In the name of God, the Most Gracious, the Most Merciful.PWebCLICommand line tools for PWeb application, which allow to make PWeb work easy.DocumentationInstall and update usingpip:pipinstall-Upweb-cliPlease findthe Documentationwith example fromhmtmcse.com/pwebbDonateBangla Fighterdevelops and supports PWebCLI and the libraries it uses. In order to grow
the community of contributors and users, and allow the maintainers to devote more time to the projects.ContributingFor guidance on setting up a development environment and how to make a contribution to PWebCLI, see the contributing guidelines.LinksChanges :https://opensource.banglafighter.org/pweb/pweb-cliPyPI Releases :https://pypi.org/project/pweb-cliSource Code :https://github.com/banglafighter/pweb-cliIssue Tracker :https://github.com/banglafighter/pweb-cli/issuesWebsite :https://www.banglafighter.com/open-source
Package: pwebf
In the name of God, the Most Gracious, the Most Merciful.PWebPython Web Framework (PWeb). PWeb is a DRY full-stack framework based on Flask micro web framework.DocumentationInstall and update usingpip:pipinstall-UpwebPlease findthe Documentationwith example fromhmtmcse.comDonateProblem Fighterdevelops and supports PWeb and the libraries it uses. In order to grow
the community of contributors and users, and allow the maintainers to devote more time to the projects.ContributingFor guidance on setting up a development environment and how to make a contribution to PWeb, see the contributing guidelines.LinksChanges :https://opensource.problemfighter.org/pweb/pwebPyPI Releases :https://pypi.org/project/pwebSource Code :https://github.com/problemfighter/pwebIssue Tracker :https://github.com/problemfighter/pweb/issuesWebsite :https://www.problemfighter.com/open-source
Package: pweb-form-rest
In the name of God, the Most Gracious, the Most Merciful.PWebFormRESTDocumentationInstall and update usingpip:pipinstall-Upweb-form-restPlease findthe Documentationwith example fromhmtmcse.comDonateBangla Fighterdevelops and supports PWebFormREST and the libraries it uses. In order to grow
the community of contributors and users, and allow the maintainers to devote more time to the projects.ContributingFor guidance on setting up a development environment and how to make a contribution to PWebFormREST, see the contributing guidelines.LinksChanges :https://opensource.banglafighter.org/pweb/pweb-form-restPyPI Releases :https://pypi.org/project/pweb-restSource Code :https://github.com/problemfighter/pweb-restIssue Tracker :https://github.com/problemfighter/pweb-rest/issuesWebsite :https://www.problemfighter.com/open-source
Package: pweb-orm
In the name of God, the Most Gracious, the Most Merciful.PWebORMPWeb Object Relational Mapping Library, based on SQLAlchemy is an open-source SQL toolkit and object-relational mapper.
It also used the Flask-SQLAlchemy extension.DocumentationInstall and update usingpip:pipinstall-Upweb-ormPlease findthe Documentationwith example fromhmtmcse.comDonateBangla Fighterdevelops and supportsPROJECT_NAMEand the libraries it uses. In order to grow
the community of contributors and users, and allow the maintainers to devote more time to the projects.ContributingFor guidance on setting up a development environment and how to make a contribution toPROJECT_NAME, see the contributing guidelines.LinksChanges :https://opensource.banglafighter.org/pweb/pweb-ormPyPI Releases :https://pypi.org/project/pweb-ormSource Code :https://github.com/banglafighter/pweb-ormIssue Tracker :https://github.com/banglafighter/pweb-orm/issuesWebsite :https://www.banglafighter.com/open-source
Package: pWebServer
pWebServerSmall, asynchronous web server for use with Raspberry Pi Pico W boards and similarBackgroundI wanted something small and reusable to work with my raspberry pi pico w and didn't find anything in the wild.
This is a work in progress, but I intend for it to be stable for at least my own use.NotesThis library is not designed to be particularly fast, however it is intended to be easy to use.HTTP MethodsSelf-defined methods are not currently supported. PATCH, CONNECT, and TRACE are also not implmentedPathsSimple paths are supported. Complex path matching is not supported.For example, in some frameworks you might be able to define a path as/some/path/to/:idAnd that would populate the id property or some other variable with the value, for pWebServer that is not the case.For dynamic data use query stringsExample (micropython):frompWebServerimportServerimportuasyncioasasynciosv=Server()sv.add_default_route()# simply adds a route at / that returns 200 OKloop=asyncio.get_event_loop()loop.create_task(sv.start())# Start serving for 0.0.0.0 (all ipv4 ips) on port 80Requirementspython >=3.11 or micropython >=1.20installingpython (with pypi)pipinstallpWebServermicropython (with mip & url)Using repl:importmipmip.install("github:sjsadowski/pWebServer",version="latest")Using mpremote:mpremotemipinstallgithub:sjsadowski/pWebServerDependenciesMicroPythonMicroPython does not ship with the full set of Python Standard Libraries. For information about this, check themicropython-lib GitHub repo.loggingPython** None **Development- pytest >= 7.4.0
- pytest-asyncio >= 0.21.0
- httpx >= 0.24.1To Do:Cookie supportPOST/PUT data supportHTTP/2.0(?)Better test coverage