Saravanan666/pypi-org huggingface dataset:
Package: omxware
Web Serviceshttps://ibm.biz/functional-genomics-apiSDK Documentation:https://ibm.biz/functional-genomics-sdk-docsGetting Startedhttps://ibm.github.io/omxware-pypi-docs/build/html/usage.htmlHelp / Forumshttps://ibm.biz/functional-genomics-forumCitationPlease contact theIBM Functional Genomics Platform Team via the Forumsfor updated citation information prior to publishing or presenting IBM Functional Genomics Platform content.“IBM Functional Genomics Platform, A Cloud-Based Platform for Studying Microbial Life at Scale”Edward E. Seabolt, Gowri Nayar, Harsha Krishnareddy, Akshay Agarwal, Kristen L. Beck, Ignacio Terrizzano, Eser Kandogan, Mary Roth, Vandana Mukherjee, James H. KaufmanIEEE/ACM - Computational Biology and Bioinformatics:10.1109/TCBB.2020.3021231Use with DockerIn an effort to make it easier for users and developers to get started with IBM Functional Genomics Platform (previously ‘OMXWare’), We have a 2 base docker images withpythonand OMXWare pre-installed. It also comes with a bunch of python libs likematplotlib,numpyalong with some others.1)  Minimal:docker pullc0mpiler/alpine-omxware-base:latestdockerrun-it--rm--nameomxware-v"$(pwd):/opt/my_work"c0mpiler/alpine-omxware-base:latestashThis is a relatively small docker image with just the required packages / libraries installed and setup.Change the mount point to whatever you want on you host machine.You may use this image as a base to build other docker containers / applications. Refer to:https://github.com/c0mpiler/alpine-omxware-base/blob/master/Dockerfilefor specifics.2)  JupyterLab:docker pull c0mpiler/jupyter:latestdockerrun-d--namejupyter--restartalways-p8888:8888-eJUPYTER_ENABLE_LAB=yes\-v/mnt/storage/jupyter:/home/jovyan/workc0mpiler/jupyterstart.shjupyterlab--LabApp.token=‘omxware’This image has JupyterLab pre-installed and setup with some example OMXWare Jupyter notebooks.Change the mount point/mnt/storage/jupyterto whatever you want on you host machine – so you can share files from your host with this docker image.This image also has some example Jupyter notebooks for you to look at and get started.Once you run the docker image – you can open uphttp://<host-name>:8888/lab?in your browser and the pwd isomxware.The host-name is that of your host machine you run this docker image on. If you are running it on your laptop, the host-name is eitherlocalhostor0.0.0.0
Package: omz-theme-ignore
omz_theme_ignore_pyAdd current RANDOM_THEME fromoh-my-zshto the .zshrc file to the ZSH_RANDOM_IGNORE_THEME section. Use as a zsh alias via python script:alias it="python3 omz_theme_ignore/main.py $RANDOM_THEME"or via package:python3 -m pip install omz_theme_ignorealias it="omz_theme_ignore $RANDOM_THEME"
Package: onadata
OverviewProject name: onadata-pythonThis package is port of an R package associated with thefree onlinebookHandbook of Graphs and Networks in People Analyticsby Keith McNulty.BackgroundAt ona-book.org, McNulty makes the data referenced inHandbook of Graphs and Networks in People Analyticsavailablevia an R package. McNulty explains:For R and Python users, each of the data sets used in this book can be downloaded individually by following the code in each chapter. Alternatively for R users who intend to work through all of the chapters, all data sets can be loaded into an R session in advance by installing and loading the onadata R package.This package brings the functionality of McNulty's R package to Python users.Usage# import onadata packageimportonadataasonaimportpandasaspd# see a list of data setsona.list_sets()# ona.help(koenigsberg)# load data into a dataframedf=ona.koenigsberg()# find out more about a specific data set ('managers' example)ona.koenigsberg().info()Data dictionaryThe data dictionary pertinent to all the data sets can be foundhere.LICENSEMIT
Package: onany
OnAny is a simple yet powerful event manager library, where you can declare listeners and dispatch as much events as needed to them.How ToTo listen and dispatch events is very simple:fromonanyimportdispatch,listener@listener("event.name")defon_event_name(*args,**kwargs):print("I've been called with{}and{}".format(args,kwargs))>>>dispatch("event.name","first_param","second_param","third_param",first="param",second="param",third="param")Should I wait all callbacks to end ?Nope. You can “threadily” dispatch your events so they
don’t need to be waited for the main process.fromonanyimportdisthread,listener@listener("event.name")defon_event_name():print("I'm gonna be executed on another thread")>>>disthread("event.name")Webhook listenerIt’s possible declare webhook rules to be dispatched as an inside event.
This webhook events can be a powerful tool for communicating to third-party
clients that an event is ended.Listener rules:routetype: strdescription: API routerequiredcallbacktype: callable/functiondescription: Receives request response object if neededWhendispatchordisthreadis called is possible define some attributes to
be sent in the external API call.Attributes:datatype: dictdescription: JSON bodyheaderstype: dictdescription: Dictionary declaring headers to be sentExample:fromonanyimportdispatch,listenerdefevent_name_webhook_response(response):ifresponse.status_code==200:print("My hook listener worked")listener("event.name",{"route":"https://my.api/hooks","callback":event_name_webhook_response})>>>dispatch("event.name",data={"some":"payload","I":"wanna","send":"to","hooked":"api"})
Package: onaphpadriver
# 1. compile hpa plugin
cd hpa
python setup.py compile# 2. install hpa plugin
cd hpa
python setup.py install# 3. test hpa plugin
cd hpa/test
# 3.1 test cloud extra info with dpdk
python test.py -f “dpdk”
# 3.2 test without cloud extra info
python test.py -t “windriver”
python test.py -t “starlingx”
python test.py -t “pike”
Package: onapsdk
Python ONAP SDKan SDK to use ONAP programmatically with Python codeDescriptionONAP SDK is a client library written in Python for building applications to work with ONAP. The project aims to provide a consistent and complete set of interactions with ONAP’s many services, along with complete documentation, examples, and tools.Using few python commands, you should be able to onboard, distribute models, instantiate xNFs and many others. Checkdocsite to find out all the features.InstallationYou can install it usingpiptool$ pip install onapsdkDevelopmentBefore you start, ensure you have Python installation in version 3.8 or higher.
Please seethe official Python documentationin case you have to upgrade or install certain Python version.Setting up development environmentClone the project. Inside the project folder create a new virtual environment and activate
it:$ python -m venv env
$ source env/bin/activateOn Windows, activate by executing the following:$ .\env\Scripts\activateWhen your virtual environment is ready, install required dependencies:$ pip install -r requirements.txtDevelopingTo use library functions directly from the source code, execute the following
to point to the source folder inPYTHONPATHvariable and run the interpreter:$ PYTHONPATH=$PYTHONPATH:src/ pythonOn Windows:$ $env:PYTHONPATH='src\';pythonVerify that packages are accessible:>>> import onapsdkYou can then start working with library functions as needed.TestingInstalltox:$ pip install toxTo run all unit test, lint and docstyle checks, inside the project folder simply
executetox:$ toxPlease note that the above runs unit tests on all major versions of Python available on your
OS (3.7, 3.8, 3.9). To limit execution to only specific version of Python interpreter,
use the following example:$ tox -e py38Integration testingIt is possible to run integration tests usingmock-serversproject.
Make sure Docker Compose is available on your system. Install required dependencies:$ pip install pytest mockGo tointegration_tests/directory and execute:$ docker-compose upPlease note thatdocker-composeattempts to create subnet 172.20.0.0/24, so it can not be run if the scope is already allocated.
Also, containers are not reachable by their IP addresses on Windows host since
Docker for Windowsdoes not supportbridged network interface for Linux containers.Once containers are running, execute the following in the project's directory:$ PYTHONPATH=$PYTHONPATH:integration_tests/:src/ ONAP_PYTHON_SDK_SETTINGS="local_urls" pytest -c /dev/null --verbose --junitxml=pytest-integration.xml integration_testsPlease make sure all the test are passing before creating merge request.Python ONAP SDK Changelogv1.0DocumentationMain new features:Onboard a simple service via SDCInstantiate a simple service via SO using GR APIInstantiate a simple service via NBIcreate business objects in AAI
Package: onapy
onapyOnapy contains, you know, masturbator motion detector and sound player based on the motion.Ona comes from Japanese name of the masturbator "Onahole".
Please see thispresentationfor detailed explanation of Open Onaho Project.RequirementsGPUDepth camera from realsense series (D435i or something)masturbatorInstallation# (Optional) Create python environment for onapy.# Install miniconda if you don't have it.# https://docs.conda.io/en/latest/miniconda.htmlcondacreate-npy38_onapypython=3.8.5
condaactivatepy38_onapy# Please install appropriate torch and mmcv version for your pc.# For example, for cuda11, please install like this.pipinstalltorch==1.7.1+cu110torchvision==0.8.2+cu110torchaudio===0.7.2-fhttps://download.pytorch.org/whl/torch_stable.html
pipinstallmmcv-full==1.2.7-fhttps://download.openmmlab.com/mmcv/dist/cu110/torch1.7.0/index.html

pipinstallonapy# Please put your favorite sounds into the folder.# These sound will be chosen randomly and played,# when masturbator is moved (estemated as inserted).cp*.mp3sounds/How to run it.Recognize waist motion attached with Realsense T265recognize_waist_motion--sound-dirsounds/Just move your waist.Recognize masturbator motionrecognize_onaho_motion--sound-dirsounds/After that, just move the masturbator.
Package: onatlib
What is Over-NAT-Lib?Library and tools for using data channel of WebRTC which can establish transport over NATUsageA tool offers P2P communication to transfer files and connect pipes between PCs in different NATsTo people who are interested in this library and toolsif you have any comment or question, please feel free to reach me or add a issue to this repo.ryo.contact[at]gmail.comhttps://twitter.com/samehada_gridhttps://ryogrid.hatenablog.com/http://ryogrid.net/
Package: onaws
onawsonawsis a simple tool to check if an IP/hostname belongs to the AWS IP space or not. It uses theAWS IP address ranges datapublished by AWS to perform the search.The tool could be helpful in:Continuous recon of assetsGathering assets that use a specific service (e.g. EC2)Subdomain/DNS takeoversFinding region information for S3 bucketsetc.InstallpipinstallonawsUpgradepipinstall-UonawsUsageGiven an IP:onaws52.219.47.34Given a hostname:A domain or subdomain can be passed as input:onawsexample.comYou may also supply an S3 bucket hostname as input:onawsdropbox.s3.amazonaws.comGiven an input listWARNING:onawsresolves each hostname individually, so if you're going to supply many hostnames, it's significantly faster to resolve them first with a tool likeMassDNS!onawsaccepts line-delimited hosts on STDIN. This is helpful if you want to pipe the output of other tools toonaws:$cathosts.txt
uber.s3.amazonaws.com
aws.com
google.com23.21.52.140


$cathosts.txt|onaws{"is_aws_ip":true,"ip_address":"52.218.106.162","service":"S3","region":"eu-west-1","matched_subnet":"52.218.0.0/17","hostname":"uber.s3.amazonaws.com"}{"is_aws_ip":true,"ip_address":"143.204.225.9","service":"CLOUDFRONT","region":"GLOBAL","matched_subnet":"143.204.0.0/16","hostname":"aws.com"}{"is_aws_ip":false,"ip_address":"216.58.201.238","hostname":"google.com"}{"is_aws_ip":true,"ip_address":"23.21.52.140","service":"EC2","region":"us-east-1","matched_subnet":"23.20.0.0/14"}OutputIf the IP/hostname falls in the AWS IP range,onawswill return the service, region and other details in the output:{"is_aws_ip":true,"ip_address":"52.218.196.155","service":"S3","region":"us-west-2","matched_subnet":"52.218.128.0/17","hostname":"flaws.cloud"}For multiple inputs, the output format will be in JSONL:{"is_aws_ip":true,"ip_address":"143.204.225.9","service":"CLOUDFRONT","region":"GLOBAL","matched_subnet":"143.204.0.0/16","hostname":"aws.com"}{"is_aws_ip":false,"ip_address":"216.58.201.238","hostname":"google.com"}{"is_aws_ip":true,"ip_address":"23.21.52.140","service":"EC2","region":"us-east-1","matched_subnet":"23.20.0.0/14"}If you want to save the output to a file, you can use Bash redirection ortee:cathosts|onaws|tee-aoutput.jsonMore examplesTo get hosts that use EC2:catoutput.json|jq-scr'.[] | select(.service == "EC2") | .hostname'Output:groove.uber.com
photos.uber.com
photography.uber.com
...To get a list of hosts that use AWS services:catoutput.json|jq-sc'.[] | select(.is_aws_ip == true ) | [.hostname, .ip_address, .service] | join (",")'Output:assets-share.uber.com,52.84.13.77,CLOUDFRONT
groove.uber.com,3.223.41.171,EC2
devbuilds.uber.com,52.84.13.29,CLOUDFRONT
photos.uber.com,54.237.133.81,EC2
...ErrorsIf the input you provide is an invalid IP or is not resolvable, the output will indicate so:$onaws'invalid.invalid'{"hostname":"invalid.invalid","resolvable":false}If, for some reason, the tool fails to fetch the AWS IP ranges, it will throw the following exception:$onaws
FailedtogetAWSIPrangesContributionI welcome contributions from the public. If you find something that could be improved, please file an Issue or send a PR :)CreditsThanks to @TomNomNom for suggesting the name.
Package: onboardapis
onboardapisDescriptiononboardapis allows you to interact with different on-board APIs.
You can connect to the WI-FI of a supported transportation provider
and access information about your journey, the vehicle you are travelling in and much more.Note:Coverage across operators is not great yet.Note:For now the only vehicle type covered by this package is trains.Note:At the time this package supports the DB ICE Portal from germany and the ÖBB Railnet Regio from austria.InstallationInstall the latest version of onboardapis fromPyPIusingpip:$python-mpipinstallonboardapisQuickstartTo begin with development you will need to know a few things first:What vehicle type you want to useWho operates the vehicleWhat country is the operator fromWith this information you can get the needed module from the packageonboardapis.<vehicle-type>.<country>.<operator>and import the API wrapper class from it.Let's say you want to use the on-board API called ICE Portal of Deutsche Bahn trains in Germany.fromonboardapis.trains.germany.dbimportICEPortalEvery implementation of an API wrapper class is a subclass of the abstract class of its vehicle type
(hereTrain) found in the vehicle package. Every vehicle type itself is a subclass ofVehicle.fromonboardapisimportVehiclefromonboardapis.trainsimportTrainfromonboardapis.trains.germany.dbimportICEPortalassertissubclass(Train,Vehicle)assertissubclass(ICEPortal,Train)assertissubclass(ICEPortal,Vehicle)assertisinstance(ICEPortal(),Train)assertisinstance(ICEPortal(),Vehicle)The abstract base class defines common attributes that are used by all implementations.For example, theTrainclass defines the attributesspeedanddelayalongside with thecurrent station(the next station you will arrive at) and others.fromonboardapis.trains.germany.dbimportICEPortalfromonboardapis.utils.conversionsimportms_to_kmhtrain=ICEPortal()train.init()print("Travelling at",train.speed,"m/s",f"({ms_to_kmh(train.speed):.2f}km/h)","with a delay of",train.delay,"seconds")print("Next stop:",train.current_station.name,"at",train.current_station.arrival.actual.strftime("%H:%M"))print(f"Distance to{train.current_station.name}:",f"{train.calculate_distance(train.current_station)/1000:.1f}km")And there you go!
You can read more information about available attributes in thetrains documentation.DocumentationReadTheDocs
Package: onboot
onbootcross-platform autostart installer(s)installpip3installonbootusagetry all available installers for a certain osfromonbootimportinstall_linux,InstallerConfiguration# installinstall_successful,used_installer=install_linux(InstallerConfiguration("/home/user/","myapp"))# uninstallifinstall_successful:used_installer.uninstall()only use a specific installerfromonboot.WindowsimportHKCUInstallerfromonbootimportInstallerConfiguration# installinstaller=HKCUInstaller(InstallerConfiguration("C:\\","myapp"))installer.install()# uninstallinstaller.uninstall()
Package: onc
ONC API Python Client LibraryThis library facilitates access to scientific data hosted byOcean Networks Canadathrough theOceans 2.0 APIpublic web services.This repository updates theONC pip packagewhich can be installed with the command:pipinstalloncDocumentationFor complete documentation and examples, visithttps://wiki.oceannetworks.ca/display/O2A/Oceans+2.0+API+HomeMaintainersCurrent maintainer:Dany CabreraPrevious maintainers:Allan Rempel,Ryan Ross
Package: oncalendar
oncalendarA systemdOnCalendar expressionparser and evaluator. Requires Python 3.10+.This package provides three iterators:oncalendar.BaseIterator(expression: str, start: datime): supports expressions
without timezone (example: "Mon, 12:34"). Accepts both naive and timezone-aware
datetimes as the start time.oncalendar.TzIterator(expression: str, start: datetime): supports expressions
with and without timezone. (example: "Mon, 12:34 Europe/Riga"). Requires the start
datetime to be timezone-aware.oncalendar.OnCalendar(expressions:str, start: datetime): supports multiple
expressions with or without timezones, separated by newlines. Requires the start
datetime to be timezone-aware. Example:2020-01-01
12:34 Europe/RigaUsagefromdatetimeimportdatetimefromoncalendarimportBaseIteratorit=BaseIterator("Mon, 12:34",datetime.now())forxinrange(0,10):print(next(it))Produces:2023-12-11 12:34:00
2023-12-18 12:34:00
2023-12-25 12:34:00
2024-01-01 12:34:00
2024-01-08 12:34:00
2024-01-15 12:34:00
2024-01-22 12:34:00
2024-01-29 12:34:00
2024-02-05 12:34:00
2024-02-12 12:34:00If oncalendar receives an invalid expression, it raisesoncalendar.OnCalendarErrorexception:fromdatetimeimportdatetimefromoncalendarimportBaseIteratorBaseIterator("Mon, 123:456",datetime.now())Produces:oncalendar.OnCalendarError: Bad hourIf oncalendar hits year 2200 while iterating, it stops iteration by raisingStopIteration:fromdatetimeimportdatetimefromoncalendarimportBaseIterator# 2199 is not leap year, and we stop at 2200print(next(BaseIterator("2199-2-29",datetime.now())))Produces:StopIterationKnown LimitationsDoes not support decimals in the second field.
Package: oncall
OncallSeeadmin docsfor information on
how to run and manage Oncall.Development setupLocal machineSee instructions for setting up Oncall on your local machinePrerequisitesDebian/Ubuntu -sudo apt-get install libsasl2-dev python3-dev libldap2-dev libssl-dev python-pip python-setuptools mysql-server mysql-clientInstallpythonsetup.pydevelop
pipinstall-e'.[dev]'Setup mysql schema:mysql-uroot-p<./db/schema.v0.sqlSetup app config by editing configs/config.yaml.Optionally, you can import dummy data for testing:mysql-uroot-p-ooncall<./db/dummy_data.sqlRunOne of the following commands:goreman startprocman startmake serveoncall-dev ./configs/config.yamlTestmaketestDocker composeSee instructions for usingdocker composeRunningmakecomposeor runningdocker composedirectly:dockercomposeup--buildLimitationsDoesn't currently provide a mechanism for running testsRequires rebuilding to apply code changesDoesn't tail Python logs to stdoutContributingCheck outhttps://github.com/linkedin/oncall/issuesfor a list of outstanding
issues, and tackle any one that catches your interest. Contributions are
expected to be tested thoroughly and submitted with unit/end-to-end tests; look
in the e2e directory for our suite of end-to-end tests.
Package: oncallclient
Python client for Oncall API==========================Install------.. code-block:: bashpip install oncallclientUsage-----.. code-block:: pythonfrom oncallclient import OncallClientclient = OncallClient(app='SERVICE_FOO',key='oncall_API_KEY',api_host='http://localhost:5000')print client.get_user('username')print client.get_team('team_name')print client.get_oncall_now('team_name', role='primary')print client.get('http://localhost:5000/api/v0/events?team=example_team&role=primary').json()Test----.. code-block:: bashpip install toxtoxRelease-------.. code-block:: bashpython setup.py sdisttwine upload dist/*
Package: once-only
once_onlyRun a python script or function only once in a given time frame.If, for example, you have a script or service which might be called frequently,
but you want to report errors only once daily to not annoy people too much,once_onlyis the library for you.QuickstartSuppose you want your script to complain, but not more than once a day.once_only.dailyis the tool you need:import once_only

@once_only.daily
def complain():
    print("This is not right!")Now you can runcomplainas often as you want, from the same python
script or from others, it will only be run at
most once a day, so that at least 24 hours are between two complaints.If you want to complain more or less often, there are other variants:objecttime deltaonce_only.weekly1 weekonce_only.daily1 dayonce_only.hourly1 houronce_only.minutely1 minuteonce_only.Once()customdatetime.timedeltaAdvanced UsageInstead of using aonce_only.Onceobject as a decorator, you can also access
it directly via thecheck_ready()andcheck_ready_trigger()functions:import once_only
import datetime

once_every_two_hours = once_only.Once(datetime.timedelta(hours=2))

if once_every_two_hours.check_ready():
    print("More than two hours have passed since last run!")

if not_a_dry_run and once_every_two_hours.check_ready_trigger():
    print("Triggering timer and running!")Note that all instances ofonce_only.Oncewith the same time delta share the
same timer, but those with different time deltas don’t share the timer.
So, if you have never run anything before, this:import once_only
import datetime

@once_only.minutely
def run_minutely():
    print("minutely")

@once_only.hourly
def run_hourly():
    print("hourly")

@once_only.Once(datetime.timedelta(minutes=60))
def run_every_60_minutes():
    print("60 minutes")

run_minutely()
run_hourly()
run_every_60_minutes()will print “minutely” and “hourly”, but not “60 minutes” because
60 minutes is the same as one hour, so the 60 minutes timer will
already be triggered byrun_hourlyandrun_every_60_minuteswill not be
run.Further documentation can be found at:https://once_only.readthedocs.io.LicenseCopyright 2022, Potsdam-Institut für Klimafolgenforschung e.V.Licensed under the Apache License, Version 2.0 (the “License”); you may not use this
file except in compliance with the License. You may obtain a copy of the License athttps://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the specific language governing
permissions and limitations under the License.Changelog1.0.0 (2022-09-16)Initial commit.once_only.Once class implemented, with direct access API and decorator
functionalities.Add Quickstart documentation.