Saravanan666/pypi-org huggingface dataset:
Package: push-test
This app is designed to exercise the Autopush server.
Tests can be contained as a JSON file.e.g.[["hello",{}],["register",{}],["push",{"data":"mary had a little lamb"}],["ack",{}],]The following commands are available:hello- begin session with autopush server.argsuaideither None if new session or a previousuaidregister- register a new Channelargs-channelIDuuid of the channel to create (None if new)key- VAPID public key base64 string (optional)push- push to an endpointargspushEndpoint- the push endpoint (defaults to registered)data- Data to pushheaders- Dictionary of headers to include in pushack- Acknowledge the last received messageArgschannelID- ChannelID of the last message (defaults to last recv’d)version- message version information (defaults to last recv’d)done- Close down connectionArgsNone
Package: push-to-gdoc
Copyright (c) 2020 Open Data Services Co-operative LimitedPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.Description: UNKNOWN
Platform: UNKNOWN
Provides-Extra: test
Package: pushurls
重推失败的 url 回到 redis 的小工具必须：1. 爬虫多次重试失败的 url 放入 mongodb2. mongodb 内失败 url 的 key 为 "url"，即 {"url": "www.xxx.com"}3. 爬虫设置可以使用 redis 的 start_urls安装：# 看具体版本，包在 dist 文件夹下$pipinstallpushurls.tar.gz使用：# 直接开始：$pushurls# 指定配置文件：$pushurls/root/push_fail_urls_set.json配置文件格式：(建议直接运行，让程序自动生成配置文件，下次就不必再输入配置){"from":[{"adder_sep":">>>","condition":{},"db":"test_db","from_collection":"test_data","fromdb_str":"127.0.0.1.amazon.test_data","host":"127.0.0.1","password":"123456","port":27017,"source":"admin","url_head":"","url_tail":"**-fixed-**test_url","user":"root"}],"to":[{"db":"0","host":"127.0.0.1","port":6379,"spiders":{"spider_name1":"S1:start_urls","spider_name2":"S2:start_urls"},"todb_str":"127.0.0.1:6379.0"}]}
Package: pushy
Pushy is a Python library for allowing one to connect to a remote Python
interpreter, and transparently access objects in that interpreter as if they
were objects within the local interpreter.Pushy has the novel ability to execute a remote Python interpreter and start a
request servicing loop therein, without requiring any custom Python libraries
(including Pushy) to be initially present. To accomplish this, Pushy requires
an SSH daemon to be present on the remote machine.Pushy was initially developed to simplify automated testing to the point that
testing software on remote machines becomes little different to testing on the
local machine.
Package: pusion
pusion– Decision Fusion FrameworkPusion (PythonUniversal Fusion) is a generic and flexible framework written in Python for combining multiple classifier’s decision outcomes.The framework comprises a variety of decision fusion methods adapted from the field of ensemble techniques and pattern recognition. The general purpose of the framework is to improve classification performance over input classifiers and to determine the compatibility of individual decision fusion methods for a given problem.
Pusion handles an unlimited number of classifiers and also tolerates various forms of classification output. These include multiclass and multilabel classification, as well as crisp and continuous class assignments (seedocumentationfor more details).
The framework was originally designed for combining fault detection and fault diagnosis methods, but its application is not limited to this domain.Full DocumentationThe full HTML documentation is available onGitHub Pagesor in the project'sdocs/build/folder.
Package: puslib
PuslibPuslibis a Python implementation of the telemetry and telecommand packet utilization standard (PUS). It is a standard widely used in the space industry for the purposes of remote monitoring and control of spacecraft subsystems and payloads.This package is mainly intended for ground segment tools, e.g.:data extraction and post-processing of telemetry.simulators.EGSE SW, and thus enabling the use of mission control systems for controling and monitoring of EGSE equipment.enable Python based commanding for mission control systems and other PUS based systems.mission-specific tools.student projects.InstallpipinstallpuslibPython 3.7 or later is required.Basic ExamplefromdatetimeimportdatetimefromfunctoolsimportpartialfrompuslibimportpacketfrompuslibimporttimeMyTmPacket=partial(packet.PusTmPacket.deserialize,has_type_counter_field=False,has_destination_field=False)MyCucTime=partial(time.CucTime,4,2,has_preamble=False)withopen('telemetry.dump','rb')asf:content=f.read()data=memoryview(content)offset=0cuc_time=MyCucTime()whileoffset<len(data):packet_length,packet=MyTmPacket(data[offset:],cuc_time,validate_fields=False,validate_pec=False)offset+=packet_lengthifpacket.service==3andpacket.subservice==25:print(packet)Supported FeaturesCCSDS packet handling (telecommands and telemetry packets)CCSDS Unsegmented Time Code (CUC) supportPolicy handling of mission specific or implementation specific configurationsSimple abstraction of application processesStreams for telemetry and telecommand I/O accessPUS Services:PUS 1: Request VerificationPUS 3: Housekeeping (partial support)PUS 5: Event ReportingPUS 8: Function ManagementPUS 17: Test (partial support)PUS 20: On-board Parameter Management (partial support)LinksECSS-E-ST-70-41C – Telemetry and telecommand packet utilization (15 April 2016)CCSDS 301.0-B-4 – Time Code Formats
Package: pussycache
Python pussy cache==================Python pussy cache is a Cache system for python objects.Cache backends can be in-memory or redis/ You can even use the djangocache framework with Python-pussy-cache.Given a one of the cache backends and any Python class you havedefine, Python-pussy-cache will cache the results of methods you havedefine and will also manage the cache invalidation by timestamp orwith methods you have defined.[![Build Status](https://secure.travis-ci.org/novapost/python-pussycache.png?branch=master)](https://travis-ci.org/novapost/python-pussycache)[![python-pussycache](https://pypip.in/v/pussycache/badge.png)](https://crate.io/packages/pussycache/)[![python-pussycache](https://pypip.in/d/pussycache/badge.png)](https://crate.io/packages/pussycache/)Here is an example to make the thing clearer```pythonimport timefrom pussycache.proxy import BaseProxyfrom pussycache.cache import BaseCacheBackend# Here is a simple class where some methods need to be cachedclass MyClass(object):def a_long_task(self, delta):time.sleep(delta)return deltadef forget_about_time(self):return None# We set an in memory cache backend with a TTL of 30 seconds.cache = BaseCacheBackend(30)cache_proxy = BaseProxy(MyClass(), cache=cache,cached_methods=["a_long_task"],invalidate_methods={"forget_about_time": ["a_long_task"]})cachedinstance = cache_proxy# your cachedinstance is now# ready to use. It will just work like a regular MyClass objectprint cachedinstance.a_long_task(10)# 10 seconds later10# if we call the same method a second time:print cachedinstance.a_long_task(10)10# result is returned immediatly because it's in the cache# butprint cachedinstance.a_long_task(3)3# with different parameters, the result is not cached yet.# if you want to invalidate the cache for this method:print cachedinstance.forget_about_time()print cachedinstance.a_long_task(10)# 10 seconds later10```Of course, If you need direct access to the cache backend, you cancall it directly. Let's say you need to invalidate ALL the cache :```pythoncachedinstance._cache.clear()```The same apply if you need to call directly the cache:```pythoncachedinstance.\_cache.set("mykey", "my value", 10)cachedinstance.\_cache.get("mykey")"my value"#and 10 seconds later:cachedinstance.\_cache.get("mykey")#the value is gone from the cache```Tests-----To run test, just install tox with ``pip install tox`` and runtox
Package: put
put℠put, stands forPythonutilities &tools, is a collection of wonderful Python utilities and tools that can make your life easier.installationsimply use pip or pipenv:pipinstallputfeaturethe following helper methods are included:hashutilities:md5: md5str, md5sum, md5base64sha1: sha1str, sha1sum, sha1base64sha256: sha256str, sha256sum, sha256base64fileutilities:directory: is_dir_exist, is_dir_empty, make_dir, remove_dir, scan_dir, join_pathfile: is_file_exist, is_file_empty, save_json, load_json, load_lines, get_file_infostringutilities:substring: str_after_first, str_after_last, str_before_first, str_before_lastjsonutilities:dump_json, save_json, load_json
Package: putali
samparkaPrints the email and the phone number from the website.
Phone number is available for Nepal & USA as of nowDeveloped by Ujjawal Shah (c) 2022Examples of How To Use PackageGet contact email from the website homepageimportsamparkahomepage=samparka.Scrollhomepage('https://howard.edu/')email_adresses=homepage.emails()print(f'emails:{email_adresses}')Output:emails: emails: ['admission@howard.edu', 'hugsadmission@howard.edu']Get phonenumbers from the homepageimportsamparka#to see which countries are available for the phone numbersprint(samparka.__availablecountries__)Output:['Nepal', 'USA']importsamparkahomepage=samparka.Scrollhomepage('https://howard.edu/')phone_numbers=homepage.phonenumbers('USA)print(f'phone_numbers:{phone_numbers}')Output:phone_numbers: ['202-806-2763', '202-806-4465', '202-865-6100', '3341862722', '202-806-2755', '202-806-6800', '202-806-6100', '1-800-822-6363']importsamparkahomepage=samparka.Scrollhomepage('https://www.setopati.com/')phone_numbers=homepage.phonenumbers('Nepal')print(f'phone_numbers:{phone_numbers}')Output:['+977-1-5429319', '9741857838', '9772067662', '9771494820', '9703857991', '9823847051', '9839993648', '9644041575', '9801123339', '9872264189', '9873538472', '9860830966', '9830826490', '+977-1-5428194', '9731283648', '9652935037', '9702006458', '9851123339']
Package: putcall
Python libraryputcallCollection of classical option pricing formulas.Example Usage>>> from putcall import black_scholes

>>> spot_value = 100
>>> strike_value = 105
>>> vol_value = 0.2
>>> time_value = 2.0
>>> is_call_bool = True
>>> rate = 0.05

>>> black_scholes(spot_value, strike_value, vol_value, time_value, is_call_bool, rate)
13.639602713024757InstallThe latest stable version can always be installed or updated via pip:$pipinstallputcallIf the above fails, please try easy_install instead:$easy_installputcallDevelopment VersionThe latest development version can be installed directly from GitHub:$pipinstall--upgradegit+https://github.com/pbrisk/putcall.gitContributionsIssuesandPull Requestsare always welcome.LicenseCode and documentation are available according to the Apache Software License (seeLICENSE).
Package: putconf
putconfputconf is a nice way to generate and install config files.To use putconf, you provide it a directory or git repository containing the
config files you want to install, and it puts them in your home folder (or
somewhere else of your choosing).Table of ContentsInstallationUsageLicenseInstallationputconf provides a script, so it is recommended to install it with pipx:pipx install putconfIf installed via pip, you will have to run putconf withpython -m putconf.UsageTo use putconf, you need to provide a source, which may be either a local
directory or a git repository. For the most part, putconf will simply copy the
files in the specified directory into the target directory, which defaults to
the current value of${HOME}.For convenience, the source may contain a toplevel directory named "dotfiles".
Files in this directory are treated as if they reside in the toplevel
themselves, but with a dot character.prepended to their names. E.g.dotfiles/bashrcwill be installed with the name.bashrc.Example:#installfromgitputconf ssh://git@github.com:jepugs/my-home-folder#installfromalocaldirectoryputconf Documents/config-filesRunputconf -hto see additional options.Licenseputconfis distributed under the terms of theGPLlicense.
Package: putil
Putil LibraryThis package has been broken off into smaller modules and packages. Development
continues in these with enhancements, bug fixes and additions as warranted.Theengmodule is the base of thepengpackageTheexdoc,exh,pcontracts,pinspectand part of theptypesmodule are the base of thepexdocpackageThemiscandtestmodules are the base of thepmiscpackageThepcsvmodule and part of theptypesmodule are the base of thepcsvpackageTheplotmodule and part of theptypesmodule are the base of thepplotpackageThetreemodule is the base of theptriepackageLicenseThe MIT License (MIT)Copyright (c) 2013-2016 Pablo Acosta-SerafiniPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
.. CHANGELOG.rst
.. Copyright (c) 2013-2016 Pablo Acosta-Serafini
.. See LICENSE for detailsChangelog0.9.12 [2016-05-16]: Broke off package into smaller modules and packages0.9.11 [2016-04-15]:Created new APIs in the exh module to simplify adding and conditionally
raising exceptions that can be auto-documented with the exdoc moduleHomogenized API arguments in several pcsv module functionsBug fixesDocumentation updates0.9.10 [2016-03-10]: Final release of 0.9.10 branch0.9.10rc1 [2016-03-09]: Apple OS X compatibility changes. Reduced memory
consumption during exception auto-documentation process. Bug fixes0.9.9 [2016-01-27]: Fixed documentation bugs that were causing errors with
Sphinx 1.3.5+0.9.8 [2016-01-22]: Bug fixes0.9.7 [2016-01-22]: Enhanced control of exceptions automatic documentation
output0.9.6 [2016-01-20]: Bug fixes0.9.5 [2016-01-08]: Bug fixes0.9.4 [2015-12-18]: Minor documentation update regarding continuous
integration setup0.9.3 [2015-12-17]: Fixed critical bug in plot module that prevented figures
without any axis labels from being generated0.9.2 [2015-12-15]: Speed improvements in plot module0.9.1 [2015-12-01]: Final release of 0.9.1 branch0.9.1rc5 [2015-12-01]: Fixed documentation URL in top-level README.rst0.9.1rc4 [2015-12-01]: Fixed bug in top-level README.rst verification0.9.1rc3 [2015-12-01]:Documentation updatesPackage verification improvements0.9.1rc2 [2015-12-01]: Fixed top-level README.rst file0.9.1rc1 [2015-11-30]: Initial public release
Package: putio-automator
put.io automatorA suite of commands for managing torrents, transfers and files onPut.IOConfigure Sickrage to use a Torrent black hole folder. Configure this application to
monitor that folder and download to the same folder used for post-processing in Sickrage.NoteVersion 2 drops Docker and RPi support. The application should still run just fine in both contexts; however it is no longer directly supported. Also, support for Python 2 has been dropped.Table of ContentsInstallationConfigurationRegular usageTorrentsFilesTransfersDatabaseInstallationInstall the putio-automator package locallyfor your user. System-wide installation is not supported.pip install --user putio-automatorThis will install a new command-line utilityputioin$HOME/.local/bin. Ensure it's on your path:echo 'PATH=$HOME/.local/bin:$PATH' >> .profile # or .bashrc or .zshrc, ymmvConfigurationInitialize the application with a basic configuration locally for your user:putio config initThis will interactively prompt you with some questions about where files should be stored, and yourPut.IOOAuth Token.To get anOAuth Tokenregister your application onPut.IO, and copy theOAuth Token(found under the key icon).NBThe directories entered must be writable by the user running the application.Check that the connection is working:putio account infoYou should see a JSON packet with information about your account. If not, check yourOAuth Tokenis correct.To help you debug config issues, show the current config:putio config showRegular usageTorrentsWatch configured directory for torrents and add toPut.IO:putio torrents watch [-a] [-p PARENT_ID]-a, --add_existing
Add existing torrents first.-p PARENT_ID, --parent_id PARENT_ID
Parent folder to add files to.Add existing torrents toPut.IO:putio torrents add [-p PARENT_ID]-p PARENT_ID, --parent_id PARENT_ID
Parent folder to add files to.FilesList files onPut.IO:putio files list [-p PARENT_ID]-p PARENT_ID, --parent_id PARENT_ID
Parent folder to list files from.Download files fromPut.IOto configured downloads directory:putio files download [-l LIMIT] [-c CHUNK_SIZE] [-p PARENT_ID]-l LIMIT, --limit LIMIT
Maximum number of files to download in one go.-c CHUNK_SIZE, --chunk_size CHUNK_SIZE
Defaults to 256kb.-p PARENT_ID, --parent_id PARENT_ID
Parent folder to download files from.-f FOLDER, --folder FOLDER
Folder in the downloads directory download to.TransfersList transfers onPut.IO:putio transfers listCancel by status:putio transfers cancel_by_status statusesstatuses
Comma-delimited list of statuses.Cancel completed transfers:putio transfers cancel_completedCancel seeding transfers:putio transfers cancel_seedingClean finished transfers:putio transfers cleanGroom transfers (cancels seeding and completed transfers, and cleans afterwards):putio transfers groomDatabaseThe application records downloads in a SQLite database, so you don't inadvertently download the same file over and over when there's an error. This command clears the database record of a specific substring so you can download it again:putio db forget namename
A substring found in the filename.
Package: putio-downloader
put.io-aria2c-downloaderPython script that sends put.io download links to aria2c for downloadInstallThis setup assumes you have aria2c up with rpc runningpipinstallputio-downloaderUsageUsage: putio-download [OPTIONS]

  CLI entrypoint for put.io downloader

Options:
  --oauth-token TEXT          [required]
  --keep-folder-structure
  --root-watch-dir INTEGER    [required]
  --aria2c-secret-token TEXT  [required]
  --incomplete-dir TEXT       [required]
  --complete-dir TEXT         [required]
  --watch-folders TEXT        [required]
  --rpc-url TEXT              [required]
  --version
  -q, --quiet
  -v, --verbose
  --config FILE               Read configuration from PATH.
  --help                      Show this message and exit.ConfigurationIf you don't want to pass those options on the command line, you can work with a config file to pass all or just some of the following:oauth_token = 'XXXXXXXX'
keep_folder_structure = 'true'
root_watch_dir = 0
incomplete_dir = '/download/incomplete'
aria2c_secret_token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
complete_dir = '/download/complete'
rpc_url = 'https://example.com:6800/rpc'
watch_folders = ['isos', 'news', 'videos']For windows, directories must follow windows' directory formatting, ie.incomplete_dir = 'C:\\download\\incomplete'
complete_dir = 'C:\\download\\complete'crontabRun the download script on an interval so you don't miss out on any of your files*/10 * * * * putio-download --config ~/myconfig.ini >> ~/putio.log 2>&1To prevent multiple instances of putio-download from running, consider using a wrapper script like the following:#!/bin/bashCOUNT=`ps-ef|grepputio-download|grep-vgrep|wc-l`if[$COUNT==0];thenputio-download--config~/config.inielseecho"already running..."fiIf you do use a script like this, make sure to update the crontab to point to it
Package: putiosync
Script for automatically downloading files from put.ioInstallation and UsageInstallation can be performed via pip:$ pip install putiosyncThis will install a new application ‘putiosync’ that can be called from the command
line as follows:$ putiosync <download_directory>Other options and customizations are available by using the ‘-h’ or ‘–help’ options.AuthenticationThe first time you run the application, a webbrowser will be opened to
put.io asking for permissions.  If authorized, you’ll get your access
token which you will enter into the application.Contributing BackFound a bug? Create an issue on github.Fixed a bug or added a feature?  Fork the project on github and
submit a pull request
Package: putki
PutkiPipeline (Finnish: putki) - discovering and executing a specific task description.DocumentationUser and developerdocumentation of putki.Bug TrackerAny feature requests or bug reports shall go to thetodos of putki.Primary Source repositoryThe main source ofputkiis on a mountain in central Switzerland.
We use distributed version control (git).
There is no central hub.
Every clone can become a new source for the benefit of all.
The preferred public clones ofputkiare:on codeberg- a democratic community-driven, non-profit software development platform operated by Codeberg e.V.at sourcehut- a collection of tools useful for software development.ContributionsPlease do not submit "pull requests" (I found no way to disable that "feature" on GitHub).
If you like to share small changes under the repositories license please kindly do so by sending a patchset.
You can either send such a patchset per email usinggit send-emailor
if you are a sourcehut user by selecting "Prepare a patchset" on the summary page of your fork atsourcehut.SupportPlease kindly submit issues athttps://todo.sr.ht/~sthagen/putkior write plain text email to ~sthagen/putki@lists.sr.htto submit patches and request support. Thanks.StatusExperimental.Note: The default branch isdefault.
Package: putkoff-chatGPT-API
putkoff_chatGPT_APIputkoff_chatGPT_APIis a Python module for interacting with OpenAI's GPT models. It simplifies the process of making API calls, managing API keys, and parsing responses, while also providing utility functions to work with timestamps and organize response data.FeaturesSupports multiple GPT models and endpointsAutomatically manages API keys using dotenvGenerates prompts and handles token size restrictionsParses responses and handles JSON dataProvides utility functions for timestamps and date formattingOrganizes response data in a structured mannerIncludes a simple GUI for user interactionUsageTo use the module, import it and call thesend_queryfunction with the necessary parameters, such as prompt, endpoint, model, and max tokens. The module will handle the API call, process the response, and return the results.Example:fromputkoff_chatGPT_APIimportsend_query# Set up parametersprompt="What is the capital of France?"endpoint="/v1/chat/completions"model="gpt-3.5-turbo"max_tokens=50# Send the queryresponse=send_query(prompt,endpoint,model,max_tokens)# Process the response as neededprint(response)# putkoff_chatGPT_API