Saravanan666/pypi-org huggingface dataset:
Package: okta-jwt
Okta JwtOkta JWT Access Token verifier for Python using cached JWKs.Link to PyPi - clickhereInstallationpipinstallokta_jwtUsageTo generate a token, you need to pass inissuer,client_id,client_secret,usernameandpasswordas parameters>>>fromokta_jwt.jwtimportgenerate_token>>>generate_token(issuer,client_id,client_secret,username,password)This generates and returns Okta Access Token.To Validate the Access Token, you need to pass in theaccess_token,issuer,audienceandclient_idsas parameters. You can pass in multiple Client IDs>>>fromokta_jwt.jwtimportvalidate_token>>>validate_token(access_token,issuer,audience,client_ids)If the token is valid then it will return the payload.Running the testsTo run the unit tests, run$ python -m unittestBreak down into testsThe unit tests pretty much covers all the main functionality of the package, like generating the token, Validating the token and Verifying Claims.ContributingBug reports and Pull Requests(PR's) are welcome on GitHub athttps://github.com/adithyasampatoor/okta_jwt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to theContributor Covenantcode of conduct.AuthorsAdithya SampatoorLicenseThe Library is available as open source under the terms of theMIT License
Package: okta-sdk-python
oktasdk-pythonThis SDK allows managing an Okta instance via Python.:warning: :construction: Alpha Preview :construction: :warning:Support Disclaimer:This SDK is not actively maintained. This SDK is community supported and is maintained by members of the Okta team for developers and IT professionals. This library is not an official Okta product and does not qualify for any Okta support. Anyone who chooses to use this library must ensure that their implementation meets any applicable legal obligations including any Okta terms and conditions
Package: okta-token-fetcher
okta-token-fetcherProvides a commandline script and package for getting an OKTA id_token by interacting with your browser via the commandline.This script builds off of the dirty quick way to get a token from your browser stated here:https://developer.okta.com/docs/guides/implement-oauth-for-okta/main/#get-an-access-token-and-make-a-request.This is done by opening a browser window that navigates to the auth server with localhost as the redirect_uri. There
is an http server that is spun up for just long enough to handle the redirect request and get the id_token from the
query parameters that are sent via window.hash (I suppose OKTA does this so that it can't be sent to the server itself).Note that when using this tool your OKTA JWT will:Be stored in ~/.okta_token (700 file permissions) unless --no-cache is specifiedBe visible in the url bar of your browser for a few secondsBe visible on the page after all of the redirects for 3 seconds before being redirected to a final page in your browserYour OKTA application MUST have "http://localhost:8888" configured as one of the allowed redirect uri's for this tool to work.As a terminal script:usage: okta-fetch [-h] -u URL -c CLIENT_ID [-s SCOPES] [-t TOKEN_TYPE] [--no-cache]

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     The auth server url. This should be only the domain and protocol. eg: https://mydomain.okta.com
  -c CLIENT_ID, --client-id CLIENT_ID
                        The client id to get a token for
  -s SCOPES, --scopes SCOPES
                        Comma delimited list of scopes to request
  -t TOKEN_TYPE, --token-type TOKEN_TYPE
                        The type of token to request
  --no-cache            Don't cache the tokenImplemented in another script:fetcher = OktaToken(
    url="https://youraccount.okta.com",
    client_id="abcdefg12345",
    scopes=["groups", "profile"],
    token_type="id_token",
    cache=True
)

print(fetcher.token)
Package: oktauilib
Library to interact with Okta via UIDocumentation:https://oktauilib.readthedocs.org/en/latestDevelopment WorkflowThe workflow supports the following stepslinttestbuilddocumentuploadgraphThese actions are supported out of the box by the corresponding scripts under _CI/scripts directory with sane defaults based on best practices.
Sourcing setup_aliases.ps1 for windows powershell or setup_aliases.sh in bash on Mac or Linux will provide with handy aliases for the shell of all those commands prepended with an underscore.The bootstrap script creates a .venv directory inside the project directory hosting the virtual environment. It uses pipenv for that.
It is called by all other scripts before they do anything. So one could simple start by calling _lint and that would set up everything before it tried to actually lint the projectOnce the code is ready to be delivered the _tag script should be called accepting one of three arguments, patch, minor, major following the semantic versioning scheme.
So for the initial delivery one would call$ _tag –minorwhich would bump the version of the project to 0.1.0 tag it in git and do a push and also ask for the change and automagically update HISTORY.rst with the version and the change provided.So the full workflow after git is initialized is:repeat as necessary (of course it could be test - code - lint :) )codelinttestcommit and pushdevelop more through the code-lint-test cycletag (with the appropriate argument)buildupload (if you want to host your package in pypi)document (of course this could be run at any point)Important InformationThis template is based on pipenv. In order to be compatible with requirements.txt so the actual created package can be used by any part of the existing python ecosystem some hacks were needed.
So when building a package out of thisdo notsimple call$ python setup.py sdist bdist_eggas this will produce an unusable artifact with files missing.Instead use the provided build and upload scripts that create all the necessary files in the artifact.Project FeaturesTODOHistory0.0.1 (10-11-2020)First code creation0.1.0 (19-01-2021)initial release0.1.1 (26-04-2021)Bumped dependencies.0.2.0 (09-06-2021)Removed a deprecated call.0.2.1 (09-06-2021)Dependency fixes.
Package: okta-uuid
This is a simple module for turning Okta’s user IDs (whichappearto be
base62-encoded integers) into UUIDs, and vice versa. This is useful for
integrating Okta with systems or services where you don’t necessarily want to
use string identifiers.InstallingFirst, make sure you’re using Python 3.2 or newer.Install from pypi:pip installokta-uuidDevelopingCreate a virtualenv.Clone this repo.Install the requirements:python setup.py develop.Hack away!There’s a (small!) test suite included. You can run it withpython test.py.UsingGet a UUID from an Okta ID:idstr='00ABCD1234wxyz5678pq'oid=okta_uuid.OktaUserId(idstr)print(repr(oid))print(oid)print(oid.uuid)# output:## OktaUserId('00ABCD1234wxyz5678pq')# 00ABCD1234wxyz5678pq# cb406d76-d66a-6007-5001-36cc7b010000Get an Okta ID from a UUID:idstr='00ABCD1234wxyz5678pq'oid=okta_uuid.OktaUserId(idstr)new_oid=okta_uuid.OktaUserId.from_uuid(oid.uuid)print(new_oid)print(oid==new_oid)# output:## 00ABCD1234wxyz5678pq# True
Package: oktools
OKtoolsTools to work with OKpy exercises and solutions.Requires:GitHub utility.  On Macbrew install hub.See thermdex READMEfor
documentation of the markup for the exercises.The tools need a configuration file in YaML format.  Here is an example:# Configuration for cfd2021 exercise builds# Save as _course.yml in home directory.# Top-level URL for built book.url:"https://uob-ds.github.io"# The subpath of built book under URL.# Full book URL will then be {url}{base_url}baseurl:"/cfd2021"# Local output path for exercise dirs.# Built exercise directories / repositories will appear here.org_path:"~/dev_trees/uob-cfd"# Github organization name to house built repositories.org_name:"uob-cfd"# Git base URL for exercise dirs.git_root:"https://github.com"# If using JupyterHub, URL of JupyterHub instance.# Uncomment and edit if using a JupyterHub.# jh_root : "https://uobhub.org"Save this file as_course.ymlin the directory with the exercise templates,
or in some directory higher up the file hierarchy (nearer the root directory) — for example, your home directory (if that is on the same filesystem as your exercise templates).Example command to check exercise build and test, run from the directory containing the exercise template files:# You can omit site-config if _course.yml is in a suitable location.
okt-dir2exercise --site-config=$HOME/my_dir/_course.yml .Then, when satisfied, use the--pushflag to push up the built exercise to a matching repository:# You can omit site-config if _course.yml is in a suitable location.
okt-dir2exercise --site-config=$HOME/my_dir/_course.yml . --push
Package: okuyama
Distributed key-value-store okuyama’s Python client.UsageConnect to MasterNode.from okuyama import Client

client = Client()
client.auto_connect(['masternode1:8888', 'masternode2:8888'])Set valueprint(client.set('key', 'val')) # => True
print(client.get('key')) # => 'val'Remove valueprint(client.delete('key')) #=> True
print(client.delete('key')) #=> NoneSet tagsprint(client.set('key1', 'val1', tags=['tag1'])) #=> True
print(client.set('key2', 'val2', tags=['tag1', 'tag2'])) #=> TrueGet keys from tagprint(client.execute('get_keys_by_tag', tag='tag1'])) #=> [key1, key2]
Package: okws
okwsDeveloper GuideSetup# create conda environment$mambaenvcreate-fenv.yml# update conda environment$mambaenvupdate-nokws--fileenv.ymlInstallpipinstall-e.# install from pypipipinstallokwsnbdev# activate conda environment$condaactivateokws# make sure the okws package is installed in development mode$pipinstall-e.# make changes under nbs/ directory# ...# compile to have changes apply to the okws package$nbdev_preparePublishing# publish to pypi$nbdev_pypi# publish to conda$nbdev_conda--build_args'-c conda-forge'$nbdev_conda--mambabuild--build_args'-c conda-forge -c dsm-72'UsageInstallationInstall latest from the GitHubrepository:$pipinstallgit+https://github.com/dsm-72/okws.gitor fromconda$condainstall-cdsm-72okwsor frompypi$pipinstallokwsDocumentationDocumentation can be found hosted on GitHubrepositorypages. Additionally you can find
package manager specific guidelines oncondaandpypirespectively.
Package: okx
OKX 2.1.0安装：pip3 install okx==2.1.1更新日期：2024-02-13同步官方文档全部Rest接口 (2023年10月)添加代理IP与代理服务器转发功能部分模块名称有所改动使用文档近期更新使用教程请参考examples1.1 OKX（库）安装与介绍1.2 API函数接口总览1.3 API 行情接口.ipynb1.4 API 交易账户.ipynb1.5 API 基础交易接口.ipynb1.6 API 公共数据.ipynb2.1 APP 现货交易账户.ipynb2.2 APP 现货行情-交易规则信息.ipynb2.3 APP 现货行情-实时行情.ipynb2.4 APP 现货行情-历史K线.ipynb2.5 APP 现货交易-基础订单.ipynb2.6 APP 现货交易-价格与数量.ipynb2.7 APP 现货交易-限价单开仓.ipynb2.8 APP 现货交易-市价单开仓.ipynb2.9 APP 现货交易-限单价平仓.ipynb2.10 APP 现货交易-市价单平仓.ipynb3.1 APP 永续合约交易账户.ipynb3.2 APP 永续合约行情-交易规则信息.ipynb3.3 APP 永续合约行情-实时行情.ipynb3.4 APP 永续合约行情-历史K线.ipynb3.5 APP 永续合约交易-基础订单.ipynb3.6 APP 永续合约交易-价格与数量.ipynb3.7 APP 永续合约交易-限价单开仓.ipynb3.8 APP 永续合约交易-市价单开仓.ipynb3.9 APP 永续合约交易-限单价平仓.ipynb3.10 APP 永续合约交易-市价单平仓.ipynb4.1 APP K线服务 下载历史K线.ipynb4.2 APP K线服务 每日定时下载昨日历史K线.ipynb4.3 K线服务 维护实时历史K线.ipynbv2.1.1 更新内容：更新examples文档load模块支持columns字段，可以保留K线数据candle的指定列，以降低内存压力。APP模块中优化列表展示结果与字典展示结果setup安装中不在约束Numpy与Pandas的版本，提高安装兼容性
Package: okxpy
okxpyDescriptionOkxpy is a Python package that provides a convenient wrapper for making API requests to the OKX exchange. With this package, users can easily access the various services offered by the OKX exchange, such as trading, account management, and market data retrieval.Using Okxpy, developers can quickly integrate OKX functionality into their Python applications, without the need for manual HTTP requests and parsing JSON responses. The package abstracts away the details of HTTP communication and handles error responses gracefully, so users can focus on their application logic.The package includes a variety of modules that correspond to the different services provided by the OKX API. These modules include methods for making requests to the OKX API endpoints, as well as for parsing and processing the responses. The package also includes a variety of utility functions for common tasks, such as generating authentication headers.To use Okxpy, users simply need to install the package using pip and provide their OKX API credentials. The package supports both public and private API calls, with authentication handled automatically for private calls.Overall, Okxpy provides a simple, convenient, and reliable way to access the OKX exchange API from Python.Source codehttps://github.com/EnkhAmar/okxpyReferenceOKX API DocumentationHow to upload package to pypi?Push update to pypipython-mbuild
twineupload--skip-existingdist/*
Package: okycmd
oky is a command line program to control an onkyo receiver. It works by receiving and sending ISCP commands to the receiver over a socket.This project includes 2 filesonkyo.py:  a library implementing the protocol to communicate with the onkyo receiver
oky: a command line interface to onkyo.pyIt has been developed for and tested with an Onkyo TX-NR609 but using older documentation for serial interface so it should in theory works with many models.
Only the subset of commands I have use for are implemented, it is however used almost every day and stable
Package: olah
olahOlah is self-hosted lightweight huggingface mirror service.Olahmeanshelloin Hilichurlian.Other languages:中文FeaturesModels mirrorDatasets mirrorSpaces mirrorInstallMethod 1: With pippipinstallolahor:pipinstallgit+https://github.com/vtuber-plan/olah.gitMethod 2: From sourceClone this repositorygitclonehttps://github.com/vtuber-plan/olah.gitcdolahInstall the Packagepipinstall--upgradepip
pipinstall-e.Quick StartRun the command in the console:python-molah.serverThen set the Environment VariableHF_ENDPOINTto the mirror site (Here ishttp://localhost:8090).exportHF_ENDPOINT=http://localhost:8090Starting from now on, all download operations in the HuggingFace library will be proxied through this mirror site.fromhuggingface_hubimportsnapshot_downloadsnapshot_download(repo_id='Qwen/Qwen-7B',repo_type='model',local_dir='./model_dir',resume_download=True,max_workers=8)You can check the path./reposwhich stores all cached datasets and models.Start the serverRun the command in the console:python-molah.serverOr you can specify the host address and listening port:python-molah.server--hostlocalhost--port8090Please remember to change the--mirror-urland--mirror-lfs-urlto the actual URLs of the mirror site while modifying the host and port.The default mirror cache path is./repos, you can change it by--repos-pathparameter:python-molah.server--hostlocalhost--port8090--repos-path./hf_mirrorsFuture WorkAuthenticationAdministrator and user systemOOS backend supportMirror Update Schedule TaskLicenseolah is released under the MIT License.See alsoolah-docsolah-sourceStar History
Package: olaii-stripe
Django Olaii StripeStripe wrapper we use at Olaii.com for payment processing.Quick StartAdd olaii_stripe to your INSTALLED_APPS settingsINSTALLED_APPS=[...'olaii_stripe',]Runpython manage.py migrateto create Stripe models.Add your Stripe API Key tosettings.pySTRIPE_API_KEY='my-api-key'
Package: olapy
AboutOlaPyis anOLAPengine based on Python, which gives you a set of tools for the development of reporting and analytical
applications, multidimensional analysis, and browsing of aggregated data withMDXandXMLAsupport.DocumentationStatusThis project is currently a research prototype, not suited for production use.LicenceThis project is currently licenced under the LGPL v3 licence.InstallationInstall from PyPIYou can install it directly from thePython Package Index:pip install olapyInstall from GithubThe project sources are stored inGithub repository.Download from Github:git clone git://github.com/abilian/olapy.gitTo set up the application, run, ideally in a virtualenv:cd olapy
python setup.py installor just:pip install -e .[OPTIONAL]you can useSparkinstead ofPandas, to do so, you need just to install it:pip install pysparkand if you want to go back to pandas just uninstall spark with:pip uninstall pysparkUsageBefore running OlaPy, you need to initialize it with:olapy initand then you can run the server with:olapy runserverand then from excel, open new spreadsheet and go to : Data -> From Other Sources -> From Analysis Services and usehttp://127.0.0.1:8000/as server name and click next, then you can chose one of default olapy demo cubes (sales, foodmart…) and finish.that’s it ! now you can play with dataDevelopingThis project must adhere to theAbilian Developer Guide.Pull requests are welcome.TestsTo run tests, run:pytest testsor simply (on Unix-like systems):make testCreditsThis project is developed byAbilian SASand partially funded by the French Government through theWendelinproject and theInvestissement d’avenirprogramme.
Package: olas
olasLibrary with wave tools. At the moment it only includes a prototype of ESTELA.Documentation:https://jorgeperezg.github.io/olasThe documentation is generated withpoetry run portray on_github_pagesInstallationInstallation with conda is straightforwardconda install -c conda-forge olasInstallation with pip requires cartopy (it can be installed withconda install -c conda-forge cartopy):pip install olasBasic usageCalculate and plot ESTELA maps from netcdf files.from olas.estela import calc, plot
estelas = calc("./tests/sample_files/test20180101T??.nc", 44, -4, "hs", "tp", "dp")
plot(estelas, outdir=".")
plot(estelas, gainloss=True, outdir=".")
Package: olass
OneFlorda Linkage Submission System (OLASS) client software
<https://github.com/ufbmi/olass-client> is designed to compute hashes of the
specific patient data elements and submit them to the OLASS server
<https://github.com/ufbmi/olass-server> to achieve de-duplication.The client authorizes using the OAuth2 protocol on the server, submits the
hashes, and receives back an uniqueidentifier (UUID) for each patient.
The UUID is used later for submission of medical records such as
demographics, procedures, diagnoses, vitals, lab results.
Package: olca-ipc
olca-ipcolca-ipcis a Python package for inter-process communication (IPC) with
openLCA. With this, it is possible to call functions of openLCA and processing
their results in Python. It implements the unified IPC protocol of openLCA for
JSON-RPC and REST APIs. The documentation of these protocols and examples can be
found in theopenLCA IPC
documentation.Notethat this version only works with theopenLCA >= 2and requiresPython >= 3.11. The last stable version foropenLCA 1.xis0.0.12:# for openLCA 1.xpipinstallolca-ipc==0.0.12The source code and API documentation of the version for openLCA 1.x is in thev1branch of this repository. For openLCA >=2, you should install the latest
version frompypi.org.# for openLCA >= 2pipinstall-Uolca-ipcIf you just want to read and write data for openLCA 2, you can also directly
use theolca-schema package, which
is a dependency ofolca-ipc.
Package: olca-schema
olca-schemaThis is a package for reading and writing data sets in theopenLCA
schemaformat version 2. It provides
a typed class model of the schema elements, methods for reading and writing them
in the JSON format, reading and writing data sets in zip packages, and some
utility methods.UsageThe package is published onPyPIand
can be installed withpip:pipinstallolca-schemaHere is a small example that creates a package that can be imported into
openLCA 2:importolca_schemaasoimportolca_schema.zipioaszipio# create a unit group and flow propertyunits=o.new_unit_group('Units of mass','kg')kg=units.units[0]mass=o.new_flow_property('Mass',units)# create a product flow and a process with the product as outputsteel=o.new_product('Steel',mass)process=o.new_process('Steel production')output=o.new_output(process,steel,1,kg)output.is_quantitative_reference=True# prints the Json string of the processprint(process.to_json())# write a zip package with the data setswithzipio.ZipWriter('path/to/example.zip')asw:forentityin[units,mass,steel,process]:w.write(entity)
Package: ol-concoursepy
concoursepyconcoursepy gives you a way to interact with the concourse api through pythoncurrently supportsconcourse's local user mechanismthe endpoints used by the concourse web uiUse a version prior to 0.0.8 for concourse 3.xExamplesimportconcoursepyci=concoursepy.api('https://ci.example.com','username','password')print(ci.jobs('example_pipeline'))# Or with token istead of username and password:ci=concoursepy.api('https://ci.example.com',token='SomeLongTokenString')print(ci.jobs('example_pipeline'))
Package: oldaicsimageio
AICS Image libraryThe oldaicsimageio package is designed to provide an easy interface with CZI, OME-TIFF, and PNG file formats.Level of SupportWe are not currently supporting this code for external use, but simply releasing it
to the community AS IS. It is used for within our organization. We are not able to
provide any guarantees of support. The community is welcome to submit issues, but
you should not expect an active response.DevelopmentSeeBUILD.mdfor information operations related to developing the code.Usagefrom oldaicsimageio import AICSImage

img = AICSImage("my_ome.tiff_or_tiff_or_czi")

# Get the image data as TCZYX
img.data

# Get channel information if you have an OME tiff
pixels = img.metadata.image().Pixels
channels = [pixels.Channel(i) for i in range(pixels.get_channel_count())]
channels = [{"name": c.get_Name(), "index": c.get_ID()} for c in channels]


# Note on channel id differences between oldaicsimageio.OMEXML and lxml.etree._Element:
        # Under lxml.etree._Element, Channel Id looks like the following: `'Channel:0'`
        # Where the single integer corresponds to the channel dimension index in image data.
        # Under oldaicsimageio, the same Channel Id looks like the following: `'Channel:0:0'`
        # Where it is the second of the two integers that corresponds to the channel dimension index in image data.
        # Regardless of structure, these can both be parsed as integers with the following:
        # `int(channel_id.split(":")[-1])`
Package: oldclient
This package is a client module for OLD web services. It facilitates making
HTTP requests to interact with one or more OLD instances.Installation:$ pip install oldclientFor example usage, see the src/example.py file. In summary:>>> from oldclient import OLDClient
>>> options = {
...     'url': '<URL_TO_AN_OLD_INSTANCE>',
...     'username': '<YOUR_USERNAME>',
...     'password': '<YOUR_PASSWORD>'}
>>> old_client = OLDClient(options['url'])
>>> old_client.login(options['username'], options['password'])
True
>>> form = old_client.models['form'].copy()
>>> form['transcription'] = 'Arma virumque cano.'
>>> form['translations'].append({
...     'transcription': 'I sing of arms and a man.',
...     'grammaticality': ''})
>>> response = old_client.create(
...     'forms',
...     data=form)
>>> print(response['id'])
1061The src/example.py file will create a stock form on an OLD you specify and have
access to:$ python src/example.py \
      -o <URL_TO_AN_OLD_INSTANCE> \
      -u <YOUR_USERNAME> \
      -p <YOUR_PASSWORD>
John Doe created a new form with id 1059 on 2018-11-20T07:05:58.
See https://app.dative.ca/#form/1059.If you are logged in to your OLD instance in Dative, you should be able to see
the form just created (the first three words from Virgil’s Aeneid) at the above
URL.