Saravanan666/pypi-org huggingface dataset:
Package: python-scf
SUSE CVE Fetcher (unofficial; not developed by SUSE)scf is a small tool to fetch informations about CVEs from suse.com.⏬ InstallationInstall viapypipackage:pipinstallpython-scfOr directly via source:pipinstallgit+https://github.com/dadav/scf📙 Documentation👉 Please usehttps://scf.readthedocs.io/en/stable/⭐️ UsageYou can use it via command line:# list all cvescfcvelist# export as jsonscfcvelist--json# fetch details for a specific cvescfcvedetailsCVE-2022-0001# watch for new CVEscfcvewatch# start a little api serverscfserverrun# prefetch some data (older years are excluded)scfcachepopulate# show some stats about the local cachescfcachestatsOr in your python program:fromrichimportprintfromscf.suseimportget_all_cve,get_cve_detailslatest_cve=get_all_cve()[0]details=get_cve_details(latest_cve)print(f'[{latest_cve}] Score:{details.cvss.score}')💓 ContributorsMade withcontributors-img.
Package: python-scheduler
# pyschedulerTask SchedulerCreate scheduled tasks at runtime easily.# Installation```bashpip install python-scheduler```# Example```bashfrom pyscheduler import schedule# crawl_task runs in every 2 minutes@schedule('*/2 * * * *')def crawl_task():print 'crawl task'```# ImportantIt won't definitely create any cronjob on the os level. All tasks will be executed on runtime.Every cron syntax can be used.
Package: python-schematized-config
schematized configInstallpipinstallpython_schematized_configusagefromschematized_config.coreimportConfigValidatorimportosimportos.pathas_pif_p.exists('.env')and'CONFIG_VALIDATOR_JSON_SCHEMA'inos.environ:ConfigValidator.load_dotenv()# use defaults of .env and CONFIG_VALIDATOR_JSON_SCHEMAdevelopmententering the development environmentassuming you havenixinstalled and
ready, make surenix-commandandflakeare enabled (oneliner: runexport NIX_CONFIG="experimental-features = nix-command flakes"in the
terminal), then enter the dev shell usingnix developstart the jupyter notebook using the provided alias or justjupyter notebook, and hack awaynbdevthis package is developed usingnbdev, so we
use an nbdev-centric development flow. For a quick guide, we recommend
checking out theend-to-end
walkthrough. But in
short: edit notebooks, then run thenbdev_*management commands. The
most essential flow is as follows:edit the notebook files (core fore core, and cli for the command
line interface)python setup.py install# note we don’t usenbdev_installbecause we managequartousingnixnbdev_preparerun code using the packagenbdev_releasenbdev_pypirunning testsif you share variables between cells in your test blocks, this causes
trouble duringnbdev_prepareas it tries to run cells in isolation,
leading to e.g.NameError: name 'example_properties_schema' is not definedto deal with this, you can merge cells that use a common variableupdating package dependenciesnote that package dependencies are specified insettings.ini; you shouldn’t be editingsetup.pyby
hand. To add a requirement, add it to therequuirementsentry insettings.ini, then runpython setup.py install
Package: python-schwab
Python library to retrieve information from a Schwab bank account.Command Line Usage$python schwab getbalance -u YOUR_USER_ID -p YOUR_PASSWORD
Balance is {{amount}}.Installation./setup.py build
./setup.py installGet Balance (Python Script)import schwab
schwab_browser = schwab.SchwabBrowser(your_username, your_pw)
print schwab_browser.get_balance()Test SetupCopytest.dummy.shand replace the default values with your user id and password:cp test.dummy.sh test.sh
chmod +x test.sh
vim test.shYou can now run tests using./test.sh.
Package: pythonscriptgetip
PYTHONSCRIPTGETIPPython script that lets you know both of your IP addresses.InstallationTo install it with pip, run:pip install pythonscriptgetipIf an error occurs:Go tohttps://github.com/Python3-8/PYTHONSCRIPTGETIP-WHL-and-TAR-GZClick on "Clone or download"Click on "Download ZIP"Extract the ZIP fileRun "tar xvzf pythonscriptgetip-0.0.1.tar.gz"Move the results to /usr/lib64/python[PYTHON_VERSION]/site-packages or [HOME]/.local/lib/python[PYTHON_VERSION]/site-packagesQuickstart GuideAfter you've downloaded and installedPYTHONSCRIPTGETIP, you can import PYTHONSCRIPTGETIP with "import pythonscriptgetip".To see your public IP address, use "pythonscriptgetip.public()".>>> import pythonscriptgetip>>> pythonscriptgetip.public()'68.36.111.99'To see your private IP address, use "pythonscriptgetip.private()".>>> import pythonscriptgetip>>> pythonscriptgetip.private()'99.111.63.86'ContributeIf you'd like to contribute to PYTHONSCRIPTGETIP,check outhttps://github.com/Python3-8/PYTHONSCRIPTGETIPoremailpranav.pooruli@gmail.com.
Package: python-scripting
Scripting is a boilerplate library for one-off Python scripts when you don’t have an IDE or the like to work with. It
was primarily designed for Windows where scripts can be run via double-click, but it (probably) works just as well in
a variety of situations.Here’s an example what a script might look like pre-Scripting:importtracebackdefdo_something():...return200if__name__=='__main__':# Run as scripttry:# Exceptions will close the terminal windowprint(do_something())exceptException:traceback.print_exc()# Debugfinally:input()# Keep the window openIf all you’re writing is a simple script and don’t want to deal with extensive error handling, chances are you’ll end
up with something like the above. If you write such scripts often, however, the amount of boilerplate adds up and
quickly becomes tedious to maintain.Post-Scripting:importscripting@scripting.maindefdo_something():...return200Scripting takes care of exception handling, output formatting, and maintaining the terminal window for you so that you
can focus on getting your script done in the shortest amount of time possible.Installation$pipinstallpython-scripting
Package: pythonscriptoperations
PythonScriptOperationsWhat is it?PythonScriptOperationsis a library for Python console applications to quickly set up a console application interface. Developers can utilize it to swiftly access specific portions of their codebase by registering operations.It is the brother toCSharpScriptOperations, a similar library for C# console applications.Quick StartImport the pip package:importpythonscriptoperationsCreate a function or async function and register it:defadd_numbers():result=2+2print(f"2 + 2 ={result}")register_operations(add_numbers,"Print the result of 2+2")Start listening for operations:start_listening()What does it look like?This is an example taken from thedemo.py.Available operations:
0. Exit
1. Addition: 5 + 7
2. Subtraction: 12 - 4
3. Multiplication (async): 6 * 3
4. Division: 36 / 6

Select an operation ('help' for list of operations)
1

Running operation: Addition: 5 + 7
12

DoneDetailed Instructions1. Install the pip package.Install the pip package using:pipinstallpythonscriptoperationsThen, simplyimport pythonscriptoperationswherever you need it.2. Define your operationsOperations are simple Python functions (or async functions) dedicated to specific tasks.To provide a description, simply pass it when registering the function:defexample_function():print("This is an example.")register_operations(example_function,"An example operation")3. Register your operationsYou can register multiple operations at once:defoperation1():passdefoperation2():passregister_operations(operation1,"Description for operation1")register_operations(operation2,"Description for operation2")4. Start listeningStart the listener to display available operations and accept user input:start_listening_async()For synchronous setups, you can use:start_listening()5. Try it outWhen you run your script, you should see a list of operations with numbers next to them. To execute an operation, simply input its number.ExampleFor a complete working example, refer to thedemo.pyin the repository.
Package: python-scuttle
python-scuttlePython wrapper aroundSCUTTLEAPI.InstallationTo install the latest release from PyPI:pipinstallpython-scuttleOr, to install the latest commit to master from source:pipinstall-egit+https://github.com/scuttle/python-scuttle.gitUsageCheck out thewikifor
theoretical usage and concept explanation, or the tests for live usage.Current SCUTTLE API documentation can be found onits
wiki. As of writing, all methods are
reproduced with similar names.TestingInstallPipenvand development
dependencies:pipenvinstall--devRun tests in pipenv environment:pipenvrunpytestTests require a SCUTTLE API key with full read permissions. Tests will look for
this key in theSCUTTLE_API_KEYenvironment variable. Tests require at least
Python 3.8.
Package: python-sdcclient
FIWARE SDC Python Client================================This is a client for Saggita SDC API. This API client has been developed in Python_. This client usesthe OpenStack Keystone service for authorization and service endpoint management.Environment-----------**Prerequisites**- `Python 2.7`__ or newer- pip_ 6.0 or newer- Additional libs that are required before installing dependencies: Python Development Tools (python-devel),zlib-devel, bzip2-devel, openssl-devel, ncurses-devel, sqlite-devel, gcc- SDC_- `OpenStack Keystone service`_ v2 (so far, only Keystone v2 is supported for this client)__ `Python - Downloads`_**Installation**All dependencies has been defined in ``requirements.txt``.To install the last version of this client, download it from the GIT SDC repository (*master* branch)and install it, using following command:::pip install -e " git+https://github.com/telefonicaid/fiware-sdc.git@master#egg=python-sdcclient&subdirectory=python-sdcclient"Developed operations---------------------Following operations are already implemented:**ProductAndRelease API Resource**- Get All ProductAndRelease from SDC catalogPython API----------An example of use of this client is:::from sdcclient.client import SDCClientsdc_client = SDCClient(user, password, tenant_id, auth_url, region_name)productandrelease_client = sdc_client.getProductAndReleaseResourceClient()allproductreleases = productandrelease_client.get_productandrelease()assertTrue(response.ok, "ERROR getting productandreleases {}. Response: {}".format(str(allproductreleases.content))).. REFERENCES.. _Python: http://www.python.org/.. _Python - Downloads: https://www.python.org/downloads/.. _pip: https://pypi.python.org/pypi/pip.. _SDC: https://github.com/telefonicaid/fiware-sdc.. _`OpenStack Keystone service`: http://docs.openstack.org/developer/keystone/
Package: pythonsdk
python-sdkSoftware Development Kit for Python, otherwise known as a Microservice Chassis, which handles cross-cutting concerns such as:LoggingMetricsTracingConfigurationSecretsVersioningHealth checksWARNINGThis library is still in development and does not have stable interfaces. While it is in use by some internal projects, it is not yet recommended for any productions workloads.RequirementsPython 3.10+Installationpip install pythonsdk#IfusingAWSfunctionalitypip install pythonsdk[aws]#IfusingCLIfunctionalitypip install pythonsdk[cli]#Ifusing`testing`packagepip install pythonsdk[testing]PackagesBelow is an abstract of the functionality provided by this library. Seedocsfor more information.binThebinpackage provides utilities for invoking processes while streaming, capturing and manipulating their output.configTheconfigpackage provides a declarative mechanism for defining your application config, with support for multiple configuration sources (environment variables, remote HTTP endpoints, S3 objects, etc.) validation, secrets injection, hot-reloading, documentation, etc.encodingTheencodingpackage provides some encoding utils commonly used when authoring networked APIs.locksThelockspackage contains a distributed locking mechanism backed by multiple different providers.logThelogpackage contains an externally configurable logging interface which supports structured logging and hot reloading.secretsThesecretspackage provides a simple interface for reading in secrets stored in secrets stores such as AWS Secrets Manager.serviceTheservicepackage provides a uvicorn-like service component for running non-webapp services (workers).testingThetestingpackage provides a highly opinionated acceptance test suite for enforcing code quality.versioningTheversioningpackage provides language-agnostic application versioning strategies.InterfacesCLIThe clipython-sdkprovides dev-time utilities such as a highly opinionated formatter (python-sdk fmt).
Package: python-sdk-bitable
飞书多维表格 API Client Wrapper for PythonInstallingpipinstallpython-sdk-bitableDocumentationFull documentation here:待完善Usage ExampleBelow are some of the methods available in the wrapper.bitable=Bitable('base_id','table_id','app_id','app_secret')bitable.list_tables()bitable.list_views()bitable.list_records()# CRUD  (insert update update delete)bitable.insert({'Name':'John'})# batch insertbitable.batch_insert([{'Name':'Tom','Sex':'male'},{'Name':'Bob','Sex':'female'}])# return first matched recordbitable.match('Name','Tom')# return all matched recordsbitable.search('Name','Tom')bitable.update_by_field('Name','Tom',{"Sex":"male"})For the full list and documentation visit the docsLicenseMIT
Package: python-sdk-ewallet
Python-sdk-ewalletPython-sdk-ewallet is a Python SDK forOpenAPIof LianLian Global e-wallet program.InstallationUse the package managerpipto install python-sdk-ewallet.pipinstallpython-sdk-ewalletUsageGet Balancesimportewalletprivate_key='XXX'ewallet.set_config(default_host=ewallet.TEST_HOST,private_key=private_key)auth=ewallet.Auth('8ZCZo2rqOb2swvSzTlc7v472G','czCAB1FftSbNfLnP1jTOYkmg1RtDfecR')data,code=ewallet.get_balances(auth)ifcode==200:print(data)else:print(code,data)For more operation, please refer to theSDK User Guide.Testpytest_ewallet.pyContributingPull 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.LicenseMIT
Package: python-seed
python-seedStarter kit for creating a new python package.This is a starter repo for creating a new python package. Included are templates for standard files as well as best practices.InstallYou can install python-seed using pip$pipinstall-Upip
$pipinstallpython-seedor install from source:$gitclonehttps://github.com/developmentseed/python-seed.git
$cdpython-seed
$pipinstall-Upip
$pipinstall-e.Usage$pyseed--help
Usage:pyseed[OPTIONS]COMMAND[ARGS]...python-seedsubcommands.

Options:--versionShowtheversionandexit.--helpShowthismessageandexit.

Commands:createCreatenewpythonseedskeleton$ pyseed create --help
Usage: pyseed create [OPTIONS] NAME

  Create new python seed skeleton.

Options:
  --ci [circleci|github]  Add CI configuration
  --help                  Show this message and exit.Create a new python project# Create a project without CI$pyseedcreateawesomepythonproject# List files created$ls-1awesomepythonproject
.pre-commit-config.yaml
README.md
awesomepythonproject/
requirements-dev.txt
requirements.txt
setup.py
tests/
tox.iniWith CI framework# Create a project github actions$pyseedcreateawesomepythonproject--cigithub# List files created$ls-1awesomepythonproject
.github/workflows/ci.yml
codecov.yml
.pre-commit-config.yaml
README.md
awesomepythonproject/
requirements-dev.txt
requirements.txt
setup.py
tests/
tox.iniProject structuremy-project/
 ├── .circleci/ or .github/      - CI configuration.
 ├── codecov.yml                 - codecov configuration (only if CI is added).
 ├── .pre-commit-config.yaml     - pre-commit configuration.
 ├── README.md                   - project readme.
 ├── my_project/                 - core python module.
 ├── tests/                      - tests suite placeholder for your module.
 ├── requirements.txt            - python requirements (!!! by default requirements are written in setup.py)
 ├── requirements-dev.txt        - python dev requirements (!!! by default requirements are written in setup.py)
 └──tox.ini                      - TOX configuration.Contribution & DevelopmentIssues and pull requests are more than welcome.dev install$gitclonehttps://github.com/developmentseed/python-seed.git
$cdpython-seed
$pipinstall-e.[dev]Python3.7 onlyThis repo is set to usepre-committo runisort,flake8,pydocstring,black("uncompromising Python code formatter") and mypy when committing new code.$pre-commitinstallAboutpython-seed was created byDevelopment Seed
Package: pythonselect
pythonselectpythonselect is a tool to set the current Python version; it is included withActivePython. If you have multiple Python versions installed - say, 2.6, 2.7
and 3.1 - then running the following will set Python 2.7 to be your current
Python:$ sudo pysel 2.7
or
C:\> pysel 2.7How does it work?OnOSX, pythonselect creates symlinks in/usr/local/bin(hencesudois required) linking to appropriate binaries in your non-system framework Python
install at/Library/Frameworks/Python.framework.OnWindows, pythonselect manipulates the system%PATH%environment
variable,AppPathand .py/.pyw associations. You will have to launch a new
Command Prompt. Windows support isexperimental. Note that on Vista and
Windows 7,pyselmust be run from an Administrator Command Window.Creditspythonselect is originally based onKomodo’s internalset-curr-python.py.RoadmapLinux support is on the horizon.News1.3Experimental Windows support (work in progress)Issue 2: restore all possible symlinks in OSX1.2Python 3 support1.1Added arch-specific binaries on MacOSX (python-32, python-64, python-all)Added 2to3 symlink1.0New: Accepts -h/-?/–help/help argument to print usage1.0b3New: Show list of installed Python versions without any argumentNew: support for pypm, virtualenv, easy_install and pip1.0b2Fix: Prevent setup.py from running on non-MacOSX platforms1.0b1Initial import from Komodo source: mozilla/support/set-curr-python.py
Package: python-selenium-ctrl-package
python_selenium_ctrlUnder construction! Not ready for use yet! Currently experimenting and planning!Developed by 2022
Need to work with Selenium framework and pytestOther CodeProcedure to publish to pypiReference:https://packaging.python.org/en/latest/tutorials/packaging-projects/#configuring-metadataUpdate pyproject.tomlInstallbuildandtwinepython packagepython-mpipinstallbuildtwineBuild packagepython-mbuild#dist folder will appear tar.gz & .whl packagePublish to pypi (Need to have pypi account)python-mtwineuploaddist/*
Package: python-seller-active
SELLER-ACTIVE-API Python WrapperThis project provides a Python wrapper for interacting with therest.selleractive.comAPI, allowing developers to easily integrate the API's functionality into their Python applications.Getting StartedThese instructions will give you a copy of the project up and running on
your local machine for development and testing purposes. See deployment
for notes on deploying the project on a live system.Installingpip install python_seller_activeUsagefromseller_active.apiimportInventory# repricer reports APIdata=Inventory(seller_id='your_username',api_key='your_password').get_inventory()print(data)# orcli=Inventory(seller_id='your_username',api_key='your_password')data=cli.get_inventory()print(data)License
Package: python-selve
A simple Python API for controlling RF Blinds / shutters / awning from selve using a USB-RF Gateway.
At present, only Iveo devices are supported.The complete protocol specification can be found atselveExample of useCreate a new instance of the gateway:gat=Gateway(portname)portname is the name of the serial port where the usb rf gateway is listed on the os. Please refer to the serial library documentation.By default the gateway will discover all Iveo devices already registered onto the gateway.To access them:gat.devices()Will return a list of IveoDevices()Each IveoDevice can be controlled by using the already defined commands: stop() moveUp() moveToIntermediatePosition1() and moveToIntermediatePosition2()The library also allows to send directly commands to the gateway without the need of using the IveoDevice abstraction just create the command and execute using the gateway:command=IveoCommandGetIds()command.execute(gat)Once executed the response is stored in the command instance for later user or just to discard.
Package: python-selve-http
Python control of selve devices through USB-RF Gateway|PyPI version|A simple Python API for controlling RF Blinds / shutters / awning from selve using a USB-RF Gateway.For the HTTP server, check outhttps://github.com/gillesmaes/python-selve-usbrf-server.The complete protocol specification can be found atselve <https://www.selve.de/de/service/software-updates/service-entwicklungstool-commeo-usb-rf-gateway/>_Example of useCreate a new instance of the gateway:.. code-block:: pythongat = Gateway(hostname)hostname is the address of the remote HTTP server that's hooked up to the USB serial interface.By default the gateway will discover all Iveo devices already registered onto the gateway.To access them:.. code-block:: pythongat.devices()Will return a list of IveoDevices()Each IveoDevice can be controlled by using the already defined commands: stop() moveUp() moveToIntermediatePosition1() and moveToIntermediatePosition2()The library also allows to send directly commands to the gateway without the need of using the IveoDevice abstraction just create the command and execute using the gateway:.. code-block:: pythoncommand = IveoCommandGetIds()
command.execute(gat)Once executed the response is stored in the command instance for later user or just to discard... |PyPI version| image::https://badge.fury.io/py/python-selve-http.svg:target:https://badge.fury.io/py/python-selve-http
Package: python-selvpcclient
python-selvpcclientThis is a client for the Selectel VPC API. There is a Python API
(the selvpcclient module), and command-line script (installed asselvpc).OverviewSelectel VPC REST API documentationPyPiGitHubBugs- issue tracking(ru)Library overviewInstalling from PyPIpip install -U python-selvpcclientLicenseApache 2.0
Package: python-semantic-release
Automatic Semantic Versioning for Python projects. This is a Python
implementation ofsemantic-releasefor JS by Stephan Bönnemann. If
you find this topic interesting you should check out histalk from
JSConf Budapest.The general idea is to be able to detect what the next version of the
project should be based on the commits. This tool will use that to
automate the whole release, upload to an artifact repository and post changelogs to
GitHub. You can run the tool on a CI service, or just run it locally.Installationpython3 -m pip install python-semantic-release
semantic-release --helpPython Semantic Release is also available fromconda-forgeor as aGitHub Action.
Read more about the setup and configuration in ourgetting started guide.
Package: python-semantic-release-pypi
Automatic semantic versioning for python projects. This is an python
implementation of thesemantic-releasefor js by Stephan Bönnemann. If you find this topic interesting you
should check out histalk from JSConf
Budapest.Installpip install python-semantic-releaseUsageThe general idea is to have some sort of tag in commit messages that
indicates certain types of changes. If a commit message lack a tag it is
ignored. Running release can be run locally or from a CI service.Usage: semantic-release [OPTIONS] COMMAND

Options:
  --major  Force major version.
  --minor  Force minor version.
  --patch  Force patch version.
  --noop   No-operations mode, finds the new version number without changing it.
  --post   If used with the changelog command, the changelog will be posted to the release api.
  --retry  Retry the same release, do not bump.
  --help   Show this message and exit.Commandsversion- Create a new release. Will change the version, commit
it and tag it.publish- Runs version before pushing to git and uploading to
pypi.changelog- Generates the changelog for the next release.Running commands from setup.pyAdd the following to your setup.py and you will be able to runpython setup.py <command>as you wouldsemantic-release<command>.try:fromsemantic_releaseimportsetup_hooksetup_hook(sys.argv)exceptImportError:passConfigurationConfiguration belongs insemantic_releasesection of the setup.cfg
file in your project. Details about configuration options can be found
inthe configuration
documentation.