Saravanan666/pypi-org huggingface dataset:
Package: osf-pigeon
# osf-pigeonA utility for archiving OSF data to archive.orgPurposeThis utility takes a publicly available OSF registration guid as a parameter and using that info alone it will transfer
that registration, file data, metadata et all to Internet Archive.InstallSimply install the package using python’s package manager pip with bash:pip3 install osf_pigeonTo use for local development just remember to install the developer requirements using:pip3 install-rdev.txtUseSimply import the module and enter a guid with credentials:from osf_pigeon import pigeon

pigeon(
   'guid0',
   datacite_username='test_datacite_username',
   datacite_password='test_datacite_password',
   datacite_prefix='test_datacite_prefix',
   ia_access_key='test_datacite_password',
   ia_secret_key='test_datacite_password',
)That’s it!Assuming the registration is fully public and the DOI has been minted properly at datacite.## Running for development#### TestsRunning tests are easy enough just:pip3 install -r dev.txt
python3 -m pytest .#### LintingOptional, but recommended: To set up pre-commit hooks (will run
formatters and linters on staged files):pip install pre-commit
pre-commit install --allow-missing-config
Package: osg
Core Directed Graph and OpenSocial Data API implementation.OpenSocial Data API implementation is preliminary since it has
not yet been stabilized by Google.Includes views to display graphs using graphviz.Includes implementation of a generative algorithm for feedback
network creation based on:D. R. White, N. Kejzar, C. Tsallis, J. D. Farmer, and S. D. White.
“A Generative Model for Feedback Networks.”
Physical Review E 73(1) (2006): Art. No. 016119 Part 2.Gallery:http://www.irl.styx.org/graphs/Available from:http://pypi.python.org/pypi/osg/http://www.irl.styx.org/hgweb.py/osg/Depends on:http://www.djangoproject.com/download/(development version) orhttp://www.irl.styx.org/hgweb.py/django_gis/http://pypi.python.org/pypi/pygraphviz/http://pypi.python.org/pypi/networkx/http://www.graphviz.org/http://www.imagemagick.org/
Package: osgar
Open Source Garden/Generic Autonomous Robot (Python library)OSGAR is lightweight multi-platform library targeting record and replay of
multiplenodes(modules = sensors, robots, applications) logged into single file. It
has similar goals as ROS or ADTF, but is minimalistic. It should run on
different operating systems and also low end devices like Raspberry PI Zero.![John Deere X300R](http://robotika.cz/competitions/roboorienteering/2016/jd-nav2.jpg)References athttp://robotika.cz/robots/osgar/Video:https://youtu.be/KiDnPsnLmLU# ArchitectureRobot is set of modules. Every module has input and output ports, described
together with the connections in the config file. All ports are logged with
timestamp (microsecond resolution). The module is typically an instance of adriver, whose init arguments are also in config file.# Notes regarding GitHub repositoryThe current development code is underosgardirectory.
If you are using OSGAR directly from sources please make sure that
you setup PYTHONPATH to the root of this project.The example configurations are stored inconfigfolder. JSON files are
used.## LFSThe repository is now using [LFS](https://git-lfs.github.com/) (Large File Storage), so please
make sure you have git-lfs installed:` git lfs install `Based on OS you may need to also install it into system, for example on Ubuntu:` sudo apt installgit-lfs`## Examples### Collect data from sensor(s)There is a [osgar/record.py](https://github.com/robotika/osgar/blob/master/osgar/record.py)
to run data collection based on given configuration file.
If you would like to collect GPS data available on serial port use modified version
of [test-windows-gps.json](https://github.com/robotika/osgar/blob/master/config/test-windows-gps.json)
for Windows or
[test-gps-imu.json](https://github.com/robotika/osgar/blob/master/config/test-gps-imu.json) for Linux.` python-mosgar.recordconfig/test-windows-gps.json`To replay existing log use:` python-mosgar.replay--module<module name> <log file name> `
Package: osgeonorge
OSGeonorgeOSGeonorge is a collection of tools and functions for ETL
or ELT tasks with data from Geonorge.no usingOSGeosoftware. It aims
at simplifying data warehousing or inclusion of data from
geonorge (https://www.geonorge.no) in maintenance or analysis pipelines.DocumentationPlease visit thedocumentationfor details on installation, usage and API reference.RequirementsRequired Python packages:requestspsycopg2numpyGDAL (>=3.4.2)Other required librariies:openfybaContributingAll contributions, bug reports, bug fixes, documentation improvements,
enhancements and ideas are welcome. These should be submitted at theGitlab repository.LicenseOSGeonorge is Free and Open Source Software with a
GPL >= 3 license.CreditsThe layout and content of the OSGeonorge package is based on thePyPi package templatebyChristopher Ostrouchov. Kudos to him for a very
helpful instruction on creating Python packages.
Package: osgood
OverviewThis is a small package of useful components.DockerThis package comes with aDockerfileanddocker-composefiles to allow dockerized development if desired. Simply rundocker compose up -dto run the containers in thedocker-compose.ymlin detached mode. See which containers are running by usingdocker ps. If you want to open a bash session inside one of the containers rundocker-compose exec <container-name> /bin/bash. To stop all containers rundocker compose down.The build command in thedocker-compose.ymltakes care of building theDockerfile. If you'd like to force a rebuild rundocker-compose up --build.To test:
Runpytestat the root of the repo.
Package: osgpy
OSG Python ToolsThe Operating System Group:https://osg.tuhh.deThis repository has multiple targets. It isAn opinionated selection of Python packages that we want to use for
managing our experiments and data.An collection of small functions that we use for looking at said
data.InstallationJust install without local checkout and code editing possibilitypip3 install git+https://github.com/tuhhosg/osgpyWith local code checkout and code changes have immediate effectsgit clone git@github.com:tuhhosg/osgpy.git
cd osgpy
pip3 install -e .
Package: os-grid-reference
Encode and decode British National Grid ReferencesTheOrdnance Surveyencodes the coordinate
of map tiles with names such asHU396753(see theBritish National Gird page
on Wikipedia).This Python package has to encode and decode such references:decoding: given a tile name, get the coordinates of the tile
in theEPSG 27700coordinate system;encoding: given the coordinates of a point, get the name of
the tiles that contain it;ExamplesTo decode a tile name:$ python -m os_grid_reference.ngr_decode HU396753 
{
    "sw_easting": 439600.0,
    "sw_northing": 1175300.0,
    "ne_easting": 439700.0,
    "ne_northing": 1175400.0,
    "size": 100.0
}To find the 100m tile containing a point:$ python -m os_grid_reference.ngr_encode --easting 439600.0 --northing 1175300.0 --size 100m
HU396753See alsoa similar utility fromEdina Digimap:NGConfa collection of Shapefiles representing the tiles:OSGB Grids
Package: osha.quizzes
osha.quizzesis a minimalistic Plone add-on that builds on top of thePloneFormGenproduct to enable you to build simple quizzes trough-the-web.Source code @ GitHubReleases @ PyPIContinuous Integration @ Travis-CIInstallationTo installosha.quizzesyou simply addosha.quizzesto the list of eggs
in your buildout, run buildout and restart Plone. Then, installosha.quizzesusing the Add-ons control panel.RequirementsPlone4.1 or newerPloneFormGen1.7 or newerUsageThis package does the following:extendsFormSelectionFieldwith acorrect_answerfield so users can
specify the correct answer from a list of options,adds aPFGCorrectAnwserAdapterthat iterates through allFormSelectionFieldson form submit, calculates the percentage of correct
answers and displays the result as a portal status message.add aquizzesview, registered forFolders, that lists all FormFolders
in a Folder, and opens them in an overlay upon clicking on one.So, to create a quiz, first create a PloneFormGen’s FormFolder, add some
FormSelectionFields to it and set the correct answer for each of them.Then add thePFGCorrectAnswersAdapterto the FormFolder, give it some
some arbitrary title and save. No when you fill out the form and click submit,
you’ll get your score in a nice status message.Finally you can choose to use thequizzesview on a Folder to list all
quizzes in that folder and open them in overlays.Changelog0.1 (2012-10-19)Initial release.
[jcerjak, plamut, zupo]License (3-clause BSD)Copyright (c) 2012, Syslab.com GmbH All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.Neither the name of Syslab.com nor the names of its contributors may
be used to endorse or promote products derived from this software
without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL SYSLAB.COM GMBH BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: oshash
oshashOpenSubtitles Hash implementation.This algorithm is focused on speed because unlike other algorithms, OSHash doesn't read the whole file.
This makes it a perfect algorithm for hashing large files.InstallationThe latest stable release can be installed from PyPI:$pipinstalloshashAPI usageSimply importoshashand calloshashfunction with your file path.importoshashfile_hash=oshash.oshash("/path/to/file")Command usageYou can compute OSHash directly from the terminal.$oshash<file_path>For example:$oshash/path/to/video.mp4OSHash (/path/to/video.mp4) = d315edebf53a4af3ComparisonA short comparison with other algorithms:320p video (61.7 MB)1080p video (339.4 MB)You can create a comparison for any file with the following command:$python3scripts/compare_algorithms.py<file_path>If you want to view graphics, make sure you havematplotlibinstalled.How It Works?In pseudo-code, the hash is computed in the following way:file_buffer = open("/path/to/file/")

head_checksum = checksum(file_buffer.head(64 * 1024))  # 64KB
tail_checksum = checksum(file_buffer.tail(64 * 1024))  # 64KB

file_hash = file_buffer.size + head_checksum + tail_checksumYou can read more inOpenSubtitles.org WikiAcknowledgementsThanks to theOpenSubtitles.orgteam for this algorithm.
Package: oshi
oshiAn asynchronous osu API wrapper made in pythonExample(s)importoshiimportasyncioasyncdefmain()->None:auth=oshi.Authentication(CLIENT_ID,"CLIENT_SECRET")asyncwithoshi.Client(auth)asclient:map=awaitclient.get_beatmap(id=1222063)print(map.url)asyncio.run(main())DevelopmentFor developersIf you plan on contributing please open an issue beforehandContributorsan-dyy- creator and maintainer
Package: oshinko-temaki
oshinko temakihand rolled spark clusters for openshiftoverviewThis is a console utility to make creating Spark clusters with thespark-operatorsimpler.
When invoked it will print a cluster schema to standard output using the
requested options.get startedpip install oshinko_temakito create a cluster where the spark-operator is runningosht | oc apply -f -for more detailsosht -h
Package: oshino
AboutOshino - named after character Meme Oshino from anime called Bakemonogatari:Meme Oshino (忍野 メメ, Oshino Meme) is a middle-aged man who lives with the mysterious Shinobu Oshino in an abandoned cram school building in the town Koyomi Araragi resides in Bakemonogatari. An expert in the supernatural, he is the reason why Koyomi was able to return back to normal after being bitten by a vampire, and he becomes Koyomi's informant when it comes to oddities for some time.SourceJust like anime character, this service likes to deal with supernatural - system availability.Heavily inspired bycollectdandriemann-tools, and unintentionally similar topython-diamondAlerting and Monitoring based onRiemannRequirementsPython 3.5+ versionHave Riemann node runningHow to installpip install oshinoQuickstartIt is highly recommended for new users to useQuickstart GuideRiemann. What? Why? How?Riemann is a backbone of this system. It does alerting, it receives metrics, it aggregates metrics and it decides where to send them (eg.: Graphite, Logstash).
However, it is rather unknown to the most of people, and configuring can be not trivial at all.To mitigate this problem, documentation for setuping Riemann for this scenario has been made:riemannExample config---interval:10riemann:host:localhostport:5555agents:-name:health-checkmodule:oshino.agents.http_agent.HttpAgenturl:http://python.orgtag:healthcheckCustom AgentsDocumentation about additional agents can be foundhereMore documentationMore documentation can be found underdocsdirectoryContributingRefer toCONTRIBUTING.md
Package: oshino-admin
oshino-adminAdministration module for Oshino.
Should come bundled together with Oshino itself.Managing Pluginsoshino-admin plugin list- lists all available pluginsoshino-admin plugin install <plugin_name>- installs requested pluginoshino-admin plugin uninstall <plugin_name>- uninstalls requested pluginManaging Oshinooshino-admin start --config=config.yaml --pid=oshino.pidoshino-admin status --pid=oshino.pidoshino-admin stop --pid=oshino.pidBe aware, that default PID path/var/run/oshino.pidmight be unaccessible by oshino-admin (Lacking of root permissions).
Custom pid path can be defined (as show in example above). Main problem is that you need to direct into correct PID for each service command.Generating Configoshino-admin config init <config_name>.ymlQuerying metricsoshino-admin query 'tagged "hw"' --config=config.yamlYou can run any query against Riemann using it's query DSL language. Short examples:tagged "<tag>"- retrieves metrics by tagservice = "<something>"- gives metrics by service name. Same can be done forhostor other keysservice =~ "%<something>%"-=~marks that we're going to search by wildcard,%marks that there can be anything (similar to SQLsLIKE %something%)
Package: oshit
OSHit -- Get your hit of the Orange Site in the terminalIntroductionOSHit is a read-only terminal-based client for HackerNews. It provides the
ability to view all the top/recent items in the major categories, as well as
allowing viewing comments and user details. Where relevant, bindings are
always available to open the relevant view on HackerNews itself in your web
browser.Please note that this clientisn'tdesigned to allow reading any and all
stories on HackerNews, it's about reading what's current "hot" or new,
within the categories provided bytheir
API.InstallingThe package can be installed usingpipx:$pipxinstalloshitOnce installed run theoshitcommand.Main featuresWhen run up the opening display is a list of items, the initial list being
the current top stories and jobs on HackerNews. Other lists available, via
shortcut keys or via tabs at the top of the screen, are "New", "Best",
"Ask", "Show" and "Jobs".Pressinguwhen viewing a job or a comment will open a dialog
that shows the details of the user who posted the item.When viewing a story or job and pressingca dialog will open
that will let you view and navigate its comments.TweakingBecause of the nature of the HackerNews API there might be a need for you to
dial in the ideal number of concurrent connections made to load up the data,
and also the timeout for the connections. As of the time of writing the
defaults are 50 concurrent connections and a timeout of 20 seconds.If you run into problems look in~/.config/oshit/configuration.jsonand
change the"maximum_concurrency"and"connection_timeout"values to
taste.Getting helpIf you need help, or have any ideas, please feel free toraise an
issueorstart a
discussion.TODOThings I'm considering adding or addressing:Chill out on item loading (see#2)Add a configuration dialog for the connection value tweaks.Some degree of caching of items to reduce API hits.Expand the text-cleaning code to handle links, etc.Look at some "markup" of comments, eg: make quoted text more obvious.Add searchingAmongst the current viewAmongst loaded comments within comment viewAll of history (hn.algolia.com)
Package: os-http
Simple HTTP CLI for OpenStackA common problem I have in development is needing to make a request against an
authenticated request against an OpenStack API “correctly” (using the catalog,
real authentication, version discovery etc).os-http is ahttpieinspired wrapper around basickeystoneauthfunctionality
that can make and display the response to HTTP requests against openstack
services.Free software: Apache licenseSource:https://github.com/jamielennox/os-httpUsagesourceaccrc# load your cloud authenticationos-http--os-service-typeimage\--os-api-version2\--os-interfacepublic\--os-regionRegionTwo\get/images
Package: osia
OSIAOpenShift infra automation.GoalThe tool aims to unified installer of OpenShift to various clouds which is
easy to automate and use within CI.To see necessary steps for OpenShift installation please seeOpenShift documentation.To see full documentation ofosiaplease follow toOfficial documentation.InstallationTo get started with osia, just install available package frompypi:$pipinstallosiaMain featuresFind empty region in aws to install opneshift on.Find feasible network in OpenStack and allocate FIPs before installation happens.Generateinstall-config.yamlfrom predefined defaults.Store generated files for deletion to git repository and push changes right after the cluster is installed.Manage DNS entries based on the installation properties and results.Clean everything once the cluster is not needed.UsageThe tool operates over directory which is expected to be git repository and where the service will
store generated configuration and push it to the upstream repository of currently working branch.Common configurationThe common configuraiton is done by yaml file calledsettings.yamlthat should be located atCWD(root of the repository in most cases).The configuration has following structure:default:
  cloud:
    openstack:
      cloud_env: env1
      environments:
      - name: env1
        base_domain: ''
        certificate_bundle_file: ''
        pull_secret_file: ''
        ssh_key_file: ''
        osp_cloud: ''
        osp_base_flavor: ''
        network_list: []
      - name: env2
        base_domain: ''
        certificate_bundle_file: ''
        pull_secret_file: ''
        ssh_key_file: ''
        osp_cloud: ''
        osp_base_flavor: ''
        network_list: []
    aws:
      cloud_env: default
      environments:
      - name: default
        base_domain: ''
        pull_secret_file: ''
        certificate_bundle_file: ''
        ssh_key_file: ''
        worker_flavor: '' 
        list_of_regions: []
  dns:
    route53:
      ttl: 0
    nsupdate:
      server: ''
      zone: ''
      key_file: ''
      ttl: 0 
      use_ipv4: falseEvery key here is overridible by the argument passed to the installer.
For explanation of any key, please check he documentation below.
Package: osidb-bindings
osidb-bindingsA client library for accessing OSIDB APIInstallationpip install osidb_bindingsUsageimportosidb_bindings# Basic authosidb_session=osidb_bindings.new_session(osidb_server_uri="http://localhost:8000/",username="username",password="password")or# Default kerberos authosidb_session=osidb_bindings.new_session(osidb_server_uri="http://localhost:8000/")# Get statusosidb_session.status()# Retrieve flawflaw=osidb_session.flaws.retrieve(id="CVE-1111-2222")# Attributes can be accessed directly via .flaw.summaryflaw.impact# or the flaw can be converted into dictflaw_dict=flaw.to_dict()flaw_dict["summary"]flaw_dict["impact"]# Retrieving multiple flawsall_flaws=osidb_session.flaw.retrieve_list()# All query params listed in OpenAPI schema can be passed as wellfiltered_flaws=osidb_session.flaws.retrieve_list(impact="IMPORTANT",tracker_ids=["111111","222222"])# number of resultsfiltered_flaws.count# list with the resultsfiltered_flaws.resultsFor more details readtutorialFor development details readdeveloper guide
Package: osier
osier/ˈōZHər/Open source multi-objective energy system frameworkInstallationosieris available throughPyPI. It may be installed withpipinstallosieror by cloning this repository and building from source:gitclonegit@github.com:arfc/osier.git# requires ssh-keys# orgitclonehttps://github.com/arfc/osier.gitcdosier# for a basic installationpipinstall.# to also install the documentation dependenciespipinstall.[doc]DocumentationThe documentation forosiercan be viewedhere.
You can also build the docs locally with:cdosier/docs
makehtmlcdbuild/html# to serve the documentationpython-mhttp.serverTestsosier's tests can be run by executingpytestin the top-level directory
ofosier.ContributingContributions toosierare welcome. For details on how to make bug reports, pull requests, and other information, check thecontributing page.CreditsSome of the documentation infrastructure was inspired by and borrowed from thewattsdocumentation.
Package: osifinanceAPI
osifinanceAPI: Python API for OSI Finance REST APIosifinanceAPI is a Python package for accessing OSI Finance's financial calculators. The library enables developers to programmatically calculate taxes, social security, and other tax-related values.InstallationYou can install osifinanceAPI with pip:pip install osifinanceAPIDocumentationFull documentation is availablehere.QuickstartGetting started with osifinanceAPI is easy.Like most API clients, osifinanceAPI exposes a single class that provides access to the rest of the API: Osifinance.The first thing to do is instantiate a new Osifinance object by providing your Osifinance instance’s root API URL and a valid API key. Additionally, you can include constant financial data such as your filing status or salary.# Import the Osifinance classfromosifinanceAPIimportOsifinance# OSI Finance API keyAPI_KEY="p@$$w0rd"# Initialize a new Osifinance objectosi=Osifinance(API_KEY)# You can now use osi to begin making API calls.# Working with Osifinance Objects# osifinanceAPI converts the JSON responses from the host website into Pandas dataframes# Get income taxesdf_income_taxes=osi.income_taxes(filing_status='single',agi=100000)# Access the total taxesdf_income_taxes.taxes.total# State tax information can be found using the StateTaxes ClassfromosifinanceAPIimportStateTaxes# Initialize a new StateTaxes objectstate_taxes=StateTaxes(API_KEY)alabama_taxes=state_taxes.alabama(agi=100000)# Alternatively, you can access a sources dict by passing in sources=Truealabama_taxes=state_taxes.alabama(agi=100000,sources=True)alabama_taxes['sources']# To access the dataframe in this case, you must access the data key firstalabama_taxes['data']Contact UsNeed help? Have an idea? Feel free to check out ourDiscussions board. Just want to say hi or get extended spport? Come join theOSI Finance Discord Channel!DisclaimerI undestand that OSI Finance reads my financial information when performing calculations and does not store any of my information. For more information, please visit ourLegal Disclaimer.
Package: osiftool
# OSIF ToolCommand line tool to help a OSIF Service software developers to develop and register a OSIF Service software# Working OSLinux TerminalMac TerminalWindow Commandline Tool# InstallIn virtualenv,``` sh(python) $ pip install osiftool```or just for system python interpreter,``` sh$ sudo pip install osiftool```# Run# Python Tool for registration OSIF Service module`osiftool [options]options:--help -h   print help--version   print version`