Saravanan666/pypi-org huggingface dataset:
Package: ossi-tool
ossi_tool=========**Author:** `Janos Tarjanyi`_.. _Janos Tarjanyi: janos.tarjanyi@gmail.comIt is a Python script, to execute multiple commands on Avaya Communication Manager,and write output data into the CSV file for later processing. It is ideal tool torepeat a command many times which not available as import in Avaya Site AdministrationTool (eg. list usage)As input arguments need to define the followings:- host- Username- Password- Input file- Output fileFor all available option use "ossi_tool -h"Usage example:- $ ossi_tool 192.168.10.10 sampleuser -ppassword -i commands.csv -o outputfile.csv- $ ossi_tool 192.168.10.10 sampleuser -ppassword -c 'list node-name all'Installation (Linux):---------------------In most Linux distribution the Python 2.7 is installed.Ossi_tool can be easily installed by pip, it takes care about other dependecies.- Check python version- `Install pip`_- $ sudo easy_install-2.7 pip.. _Install pip: https://www.tecmint.com/install-pip-in-linux/- Install ossi_tool- $ sudo pip install ossi_toolossi_tool is ready to use ;)Installation (Windows):------------------------Because the ossi tool use pexpect wich is not compatible with Windows Powershell SSH client,Linux Subsystem (WLS) should be used on Windows. You can chose many linux disctribution assubsystem. `How_to_install_WLS`_.. _How_to_install_WLS: https://docs.microsoft.com/en-us/windows/wsl/install-win10When the WLS is ready to use all other step same like Linux usage.- Check python version- `Install pip`_- $ sudo easy_install-2.7 pip.. _Install pip: https://www.tecmint.com/install-pip-in-linux/- Install ossi_tool- $ sudo pip install ossi_toolossi_tool is ready to use ;)Supported SAT commands----------------------- display- list- mon*Note:ossi_tool focuses those commands which are not scriptable by Avaya SiteAdministration. With SAT export/import many change type commands can be achivedso it will not be part of the ossi_tool. If you have idea what command should includedrop me an* `E-mail`_ to discuss it... _E-mail: janos.tarjanyi@gmail.comKnown issues---------------------Check the project `GitHub page`_.. _GitHub page: https://github.com/deesnow/ossi_tool/issues
Package: ossi-tool3
ossi_tool-------------------------It is a Python script to emulate Avaya SAT (Communication Manager Site Administration Tool)to execute multiple commands, and write output data into the CSV file for later processing.It should be ideal tool to repeat a command multiple times which not available as import inAvaya Site Administration Tool (eg. list usage).As input arguments need to define the followings:- host- Username- Password- Input file- Output fileFor all available option use "ossi_tool3 -h"Usage example:#ossi_tool3 192.168.10.10 sampleuser -ppassword -i commands.csv -o outputfile.csv---------------------Installation (Linux):---------------------You can easily install ossi_tool3 with pip. It takes care about the prerequisits.Usage#pip3 install ossi_tool3-----------------------Installation (Windows):-----------------------Due to different ssh approch on Windows the pexpect and the ossi_tool3 is not available. For Windows use WSL(Windows Subsystem for Linux ).Please read about WSL here: https://docs.microsoft.com/en-us/windows/wsl/If you have working linux subsystem, you can follow the Linux description.-------------Known issues:-------------- If the RSA key of the host where want to connect not in the .ssh/known_hosts file, than it drops an exception.Workaround:ssh to the host with regular ssh and accept the RSA key.- Some of the 'list measurement' commands does not provide general output, so it will drop error
Package: osslicenses
A command line tool to view OSS licenses. Usesgithub3.pylicenses API to retrieve from GitHub.Example Usage:Listing available license$ osslicenses list

  Name                                     Key
---------------------------------------  ------------
Apache License 2.0                       apache-2.0
Artistic License 2.0                     artistic-2.0
BSD 2-clause "Simplified" License        bsd-2-clause
BSD 3-clause "New" or "Revised" License  bsd-3-clause
Creative Commons Zero v1.0 Universal     cc0-1.0
Eclipse Public License 1.0               epl-1.0
GNU Affero General Public License v3.0   agpl-3.0
GNU General Public License v2.0          gpl-2.0
GNU General Public License v3.0          gpl-3.0
GNU Lesser General Public License v2.1   lgpl-2.1
GNU Lesser General Public License v3.0   lgpl-3.0
ISC License                              isc
MIT License                              mit
Mozilla Public License 2.0               mpl-2.0
The Unlicense                            unlicenseGetting a specific license$ osslicenses get mit

The MIT License (MIT)

Copyright (c) [year] [fullname]

Permission 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.

(oss-licenses)Matts-MacBook-Air:osslicenses mattchung$
Package: oss-notice-tool
OSS Notice ToolOSS Notice Tool is a tool that automatically creates open source software notices based on SPDX documents.InstallationUse the package managerpipto install foobar.pipinstalloss-notice-toolor you can install from source code.pythonsetup.pyinstallUsage$oss-notice-toolcreatesample/SPDXRdfExample-v2.1.xlsx--html_formatTest$python-munittestContributingPull 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.LicenseApache-2.0
Package: os-spage
os-spageRead and write Spage.Spage is an incompact data structure to specify fetched record. Generally speaking, it contains four sub-blocks:url,inner_header,http_header, anddata.Spage:url: the URL.inner_header: key-values, can be used to record fetch/process info, such as fetch-time, data-digest, record-type,  ect.http_header: key-values, server's response HTTP Header as you know.data: fetched data, can be flat or compressed html.We use dict type to implements Spage. A predefinedschemacan be used for validating.It is common to write Spage to size-rotate-file, we choiceos-rotatefileas default back-end.Notice:os-spage should not be used for strict serialization/deserialization purpose, it will lose type info when written, all data will be read as string(unicode python2) after all.Usually, the data stored in compressed format. You can usezlib.decompressmethod to decompress.Offpage:From v0.4, this libaray support reading from offpage. Offpage is another data storage format, include url, headers and series data. You can useread/open_filemethods withpage_type="offpage"to read from offpage.From v0.5, support transform spage into offpage. You can useread/open_filemethods withpage_type="s2o"to read from spage and transform the record into offpage format. (Not fully tested yet)Example:from os_spage import read

f = open('your_spage', 'rb')
for offpage in read(f, page_type='s2o'):
    print(offpage )Installpip install os-spageUsageWrite to size-rotate-filefrom os_spage import open_file

  url = 'http://www.google.com/'
  inner_header = {'User-Agent': 'Mozilla/5.0', 'batchID': 'test'}
  http_header = {'Content-Type': 'text/html'}
  data = b"Hello world!"

  f = open_file('file', 'w', roll_size='1G', compress=True)
  f.write(url, inner_header=inner_header, http_header=http_header, data=data, flush=True)
  f.close()Read from size-rotate-filefrom os_spage import open_file

  f = open_file('file', 'r')

  for record in f.read():
      print(record)
  f.close()R/W with other file-like objectfrom io import BytesIO
  from os_spage import read, write

  s = BytesIO()
  write(s, "http://www.google.com/")

  s.seek(0)
  for record in read(s):
      print(record)Unit Tests$ toxLicenseMIT licensed.
Package: oss-policy-sign
IntroductionThis package is to provide aliyun oss policy and sign from the backend
to clients such as Android, iOS devices and specially mini programs
on Weixin.Many examples and demos even on the official page put access key
and secrets directly in the clients, which can be very dangerous
since all the code are actually not encrypted.This package obtain policy and its encrypted sign  in the backend,
which is then passed by a requestRequirementsThe package is based on django restframework, so both django and
django rest framework should be installed.If not, you can import from 'oss_poly_sign.generators' to generate
the policy code and auth.How to UseStep 1:pip install oss-policy-signAdded the following settings in your settings.py:OSS_ACCESS_KEY = ""
OSS_ACCESS_SECRET = ""
OSS_TIMEOUT = 60 # 60 minutes, an hour
OSS_MAXSIZE = 10 # 10MAdded the following to your urls.py:from oss_policy_sign.views import OssAuthViewSet
  urlpatterns = [
        #  ...
        url(r'^oss/auth/', OssAuthViewSet),
    ]test it by making a request
Package: ossreport
ossreportIntroductionossreportis a report tool forSCANOSSwritten in Python.PrerequisitesPython >= 3.7.0Rungitclonehttps://github.com/craftslab/ossreport.gitcdossreport
pipinstall-Urrequirements.txt
pythonreport.py--config-file="config.yml"--license-file"license.json"--scanoss-file"scanoss.json"--output-file"output.pdf"Dockergitclonehttps://github.com/craftslab/ossreport.gitcdossreport
dockerbuild--no-cache-fDockerfile-tcraftslab/ossreport:latest.
dockerrun-it-v/tmp:/tmpcraftslab/ossreport:latest./ossreport--config-file="config.yml"--license-file"license.json"--scanoss-file"/tmp/scanoss.json"--output-file"/tmp/output.pdf"Usageusage: report.py [-h] [--config-file CONFIG_FILE]
                 [--license-file LICENSE_FILE] --output-file OUTPUT_FILE
                 --scanoss-file SCANOSS_FILE [-v]

SCANOSS Report

optional arguments:
  -h, --help            show this help message and exit
  --config-file CONFIG_FILE
                        config file (default: ossreport/config/config.yml)
  --license-file LICENSE_FILE
                        license file (default: ossreport/data/license.json)
  --output-file OUTPUT_FILE
                        output file (.pdf|.xlsx)
  --scanoss-file SCANOSS_FILE
                        scanoss file (.json)
  -v, --version         show program's version number and exitSettingsossreportparameters can be set in the directoryconfig.An example of configuration inconfig.yml:apiVersion:v1kind:workermetadata:name:ossreportspec:risk:license:critical:high:permissions:-commercial-use-modifications-distribution-patent-use-private-useconditions:-include-copyright-document-changes-disclose-source-same-licenselimitations:-liability-warrantymedium:permissions:conditions:limitations:low:permissions:-commercial-use-modifications-distribution-patent-use-private-useconditions:-include-copyright-document-changeslimitations:-trademark-use-liability-warrantynone:permissions:conditions:limitations:LicenseProject License can be foundhere.ReferenceLicensechoosealicense-ruleschoosealicense-tablegithub-licensesspdx-licenseReportLabreportlab-examplereportlab-userguide
Package: osstatus
OSStatusQuery os status codes directly from your shell, based on the
amazinghttps://www.osstatus.com/.Installationpython3-mpipinstallosstatusUsageUse from your shell:Usage: python -m osstatus [OPTIONS] COMMAND [ARGS]...

  query error codes

Options:
  --help  Show this message and exit.

Commands:
  all     get all possible errors codes
  code    get all possible errors codes by error code
  symbol  get all possible errors codes by symbol nameOr from python:fromosstatus.cacheimportget_possible_error_codes# get all possible errors codes for status 50possible_error_codes=get_possible_error_codes(50)# [ErrorCode(platforms=[<Platform.macOS: 'macOS'>, <Platform.iOS: 'iOS'>],#           framework='Foundation',#           header_file='NSXMLParser.h',#           name='NSXMLParserAttributeListNotStartedError',#           value=50,#           description=''),#  ErrorCode(platforms=[<Platform.iOS: 'iOS'>],#           framework='HomeKit',#           header_file='HMError.h',#           name='HMErrorCodeAccessorySentInvalidResponse',#           value=50,#           description=''),#  ErrorCode(platforms=[<Platform.macOS: 'macOS'>, <Platform.iOS: 'iOS'>],#           framework='Kernel',#           header_file='errno.h',#           name='ENETDOWN',#           value=50,#           description='Network is down'),#  ErrorCode(platforms=[<Platform.macOS: 'macOS'>, <Platform.iOS: 'iOS'>],#           framework='Kernel',#           header_file='kern_return.h',#           name='KERN_CODESIGN_ERROR',#           value=50,#           description='During a page fault, indicates that the page was '#                       'rejected as a result of a signature check.'),#  ErrorCode(platforms=[<Platform.iOS: 'iOS'>],#           framework='Matter',#           header_file='MTRClusterConstants.h',#           name='MTRClusterTestClusterAttributeClusterErrorBooleanID',#           value=50,#           description='')]print(possible_error_codes)
Package: ossTools
Useful tools for OSSMakes your experience with OSS easier.Quick startpipinstallossToolsCaution: Currently, only the following functions are tested:ossInitossOpenimReadimWriteossListFileossListDirossIsFileossIsDirossDownloadFileossUploadFilePlease report any problems with other untested functions to me, thanks!Email:Ziheng Zhang (Suyue)fromossToolsimport*ossInit(bucket='bucket-name',access_id='your-access-id',access_key='your-access-key',endpoint='oss-cn-hangzhou.aliyuncs.com',)# Read file, multiprocess safe!withossOpen("some/path/in/the/bucket","r")asfp:print(fp.read())# Write file, multiprocess safe!withossOpen("some/path/in/the/bucket","w")asfp:# Python3print("Hello, world!",file=fp)# Python2fp.write("Hello, world!\n")# Open and show an image with OpenCVimportcv2# Use wrapped imRead/imWrite function in ossTools instead of cv2.imreadimg=imRead("some/image.jpg",flags=cv2.IMREAD_ANYCOLOR|cv2.IMREAD_ANYDEPTH)cv2.imshow("img",img)cv2.waitKey()# Integrate with tensorboardXimporttensorboardXastbwritter=tb.SummaryWriter(log_dir="oss://bucket/path/to/oss/dir")writter.add_scalar("train/loss",some_loss,global_step=iters)# File Utils# Check file existenceassertossIsFile("path/to/file"),"File{}does not exist!".format("path/to/file")# List files in a dirprint(ossListFile("path/to/dir"))# Or list dirs in a dirprint(ossListDir("path/to/dir"))# Download/Upload/Delete/CopyossDownloadFile("remote/path","local/path",progress_callback=lambdaper:print("{}% downloaded.".format(per)))ossUploadFile("remote/path","local/path",overwrite=True,progress_callback=lambdaper:print("{}% uploaded.".format(per)))ossDeleteFile("path/to/file")ossDeleteDir("path/to/dir",iterative=True)ossCopyFile("source/file","target/file")
Package: ossuary
ossuary 🎲 probability analysis toolkitA Python package for analyzing dice and other randomizers.Features:Exact values for probability computations.Statistical analysis (mean, mode, standard deviation).Graph plotting with visualization of median and other quantiles.Support for symbolic as well as numeric dice.Command-line evaluator for ease of use.Python API for extensibility.Installationpip install ossuary
pip install matplotlib  # optional graphing supportCommandsRoll a die.ossuary d6Roll d4+1 three times and add the results.ossuary '3 @ (d4+1)'Roll 4d6 and add the highest 3 dice.ossuary 'Dice.NdX(4, d6, kh=3).sum()'Take the middle die out of three d20 rolls.ossuary 'Dice.NdX(3, d20, km=1).sum()'Graph 12d6 with the results partitioned by deciles.ossuary '(12 @ d6).plot(q=10)'
Package: os-testr
A testr wrapper to provide functionality for OpenStack projects.Free software: Apache licenseDocumentation:https://docs.openstack.org/os-testr/Source:https://opendev.org/openstack/os-testrBugs:https://bugs.launchpad.net/os-testrFeaturessubunit-trace: an output filter for a subunit stream which provides
useful information about the runsubunit2html: generates a test results html page from a subunit streamgenerate-subunit: generate a subunit stream for a single test
Package: ost-kit-python
ost-kit-pythonAn unofficialOST Kit APIwrapper for Python 2/3. Supports all functionality of OST Kit API v1.1.Installationpip install ost-kit-pythonUsagefromost_kit_pythonimportOSTKit# instantiate OST Kit with API credentialsostkit=OSTKit(api_url='https://sandboxapi.ost.com/v1.1',api_key='OSTKIT_API_KEY',api_secret='OSTKIT_API_SECRET')# execute API endpoint methodsr=ostkit.users.create('Jason')# response JSON is automatically converted to a dictionaryuser_id=r['data']['user']['id']More Examples# https://dev.ost.com/docs/api_users_create.htmlr=ostkit.users.create(name='James')# https://dev.ost.com/docs/api_users_edit.htmlr=ostkit.users.update(user_id='abcd-1234-some-guid',name='Jimothy')# https://dev.ost.com/docs/api_users_retrieve.htmlr=ostkit.users.retrieve(user_id='abcd-1234-some-guid')# https://dev.ost.com/docs/api_users_list.htmlr=ostkit.users.list(limit=100)# https://dev.ost.com/docs/api_airdrop_execute.htmlr=ostkit.airdrops.execute(amount=6.66,user_ids=('abcd-1234-some-guid',))# https://dev.ost.com/docs/api_airdrop_retrieve.htmlr=ostkit.airdrops.retrieve(airdrop_id='abcd-1234-some-guid')# https://dev.ost.com/docs/api_airdrop_list.htmlr=ostkit.airdrops.list()# https://dev.ost.com/docs/api_actions_create.htmlr=ostkit.actions.create(name='Bonus',kind='company_to_user',amount=3.33,arbitrary_amount='false')# https://dev.ost.com/docs/api_actions_update.htmlr=ostkit.actions.update(action_id=1234,name='MajorBonus')# https://dev.ost.com/docs/api_actions_retrieve.htmlr=ostkit.actions.retrieve(action_id=1234)# https://dev.ost.com/docs/api_actions_list.htmlr=ostkit.actions.list()# https://dev.ost.com/docs/api_action_execute.htmlr=ostkit.transactions.execute(from_user_id='abcd-1234-some-guid',to_user_id='abcd-1234-some-guid',action_id=1234)# https://dev.ost.com/docs/api_transaction_retrieve.htmlr=ostkit.transactions.retrieve(transaction_id='abcd-1234-some-guid')# https://dev.ost.com/docs/api_transaction_list.htmlr=ostkit.transactions.list()# https://dev.ost.com/docs/api_balance.htmlr=ostkit.balances.retrieve(user_id='abcd-1234-some-guid')# https://dev.ost.com/docs/api_ledger.htmlr=ostkit.ledger.retrieve(user_id='abcd-1234-some-guid')# https://dev.ost.com/docs/api_transfers_create.htmlr=ostkit.transfers.create(to_address='0x123456',amount=6.66)# https://dev.ost.com/docs/api_transfers_retrieve.htmlr=ostkit.transfers.retrieve(transfer_id='abcd-1234-some-guid')# https://dev.ost.com/docs/api_transfers_list.htmlr=ostkit.transfers.list()# https://dev.ost.com/docs/api_token.htmlr=ostkit.token.retrieve()
Package: ost-kyc-sdk-python
OST KYC Python SDKThe officialOST KYC SDK.RequirementsTo use this node module, developers will need to:Login onhttps://kyc.ost.com/admin/login.Obtain an API Key and API Secret fromhttps://kyc.ost.com/admin/settings/developer-integrations.Documentationhttps://dev.ost.com/docs/kycInstallationInstall OST KYC Python SDK>pipinstallost_kyc_sdk_pythonExample UsageRequire the SDK:importost_kyc_sdk_pythonInitialize the SDK object://thelatestvalidAPIendpointis"https://kyc.sandboxost.com",thismaychangeinthefuturekyc_sdk=ost_kyc_sdk_python.Services({'api_key':<api_key>,'api_secret':<api_secret>,'api_base_url':<api_secret>,'config':{'timeout':<desired_timeout_in_secs>}})Heretimeoutforrequestscanbepassedinsideconfig,timeoutisinseconds(defaultis15secs).Users Moduleusers_service=kyc_sdk.services.usersCreate a new user:r=users_service.create({'email':'alice+1@ost.com'})print(r)Get an existing user:r=users_service.get({'id':'11003'})print(r)Get a list of users and other data:r=users_service.list()print(r)Users KYC moduleusers_kyc_service=kyc_sdk.services.users_kycSubmit KYC:r=users_kyc_service.submit_kyc({'user_id':11035,'first_name':'aniket','last_name':'ayachit','birthdate':'21/12/1991','country':'india','nationality':'indian','document_id_number':'arqpa7659a','document_id_file_path':'2/i/016be96da275031de2787b57c99f1471','selfie_file_path':'2/i/9e8d3a5a7a58f0f1be50b7876521aebc','residence_proof_file_path':'2/i/4ed790b2d525f4c7b30fbff5cb7bbbdb','ethereum_address':'0xdfbc84ccac430f2c0455c437adf417095d7ad68e','estimated_participation_amount':'2','street_address':'afawfveav ','city':'afawfveav','state':'afawfveav','postal_code':'afawfveav','investor_proof_files_path':['2/i/9ff6374909897ca507ba3077ee8587da','2/i/4872730399670c6d554ab3821d63ebce']})print(r)List Users KYC:r=users_kyc_service.list()print(r)Get Users KYCr=users_kyc_service.get({'user_id':11003})print(r)Get PUT Presigned urlr=users_kyc_service.get_pre_signed_url_put({'files':{'residence_proof':'application/pdf','investor_proof_file1':'application/pdf','investor_proof_file2':'application/pdf','document_id':'image/jpeg','selfie':'image/jpeg'}})print(r)Get POST Presigned urlr=users_kyc_service.get_pre_signed_url_post({'files':{'residence_proof':'application/pdf','investor_proof_file1':'application/pdf','investor_proof_file2':'application/pdf','document_id':'image/jpeg','selfie':'image/jpeg'}})print(r)Send KYC approve emailr=users_kyc_service.email_approve({'user_id':11003})print(r)Send KYC deny emailr=users_kyc_service.email_deny({'user_id':11003})print(r)Send KYC report issue emailr=users_kyc_service.email_report_issue({'user_id':11003})print(r)Users KYC details Moduleusers_kyc_details_service=kyc_sdk.services.users_kyc_detailsGet user's kyc detailsr=users_kyc_details_service.get({'user_id':11003})print(r)Validation Modulevalidator_service=kyc_sdk.services.validatorsVerify ethereum addressr=validator_service.verify_ethereum_address({'ethereum_address':'0x32be343b94f860124dc4fee278fdcbd38c102d88'})print(r)Note: If user want to use non english characters in Python 2, write# -*- coding: utf-8 -*-at the beginning of the file.