Saravanan666/pypi-org huggingface dataset:
Package: owotext
owotextA Python library for converting text strings into OwO, inspired byDouglas Gardner's work.Installingpip install owotextUsageYou can use owotext in your Python projects like so:# OwO Impowt da wibwawy ÙωÙfromowotextimportOwO# Huohhhh. Setup da convewtew ʕʘ‿ʘʔuwu=OwO()# HIIII! Convewt a stwing into OwO speak Huoh.print(uwu.whatsthis('In the beginning the Universe was created. ''This had made many people very angry and has ''been widely regarded as a bad move.'))Example output:Huohhhh. In da beginning da Univewse was cweated. This had made many peopwe vewy angwy and haz been widewy wegawded as a bad move. Huoh.You can also call owotext from the command line by using theowocommand:owo You know something? I really hate people! They're selfish, ignorant, loud obnoxious pricks, with basically no redeeming qualities whatsoever. I mean really, look at all they've achieved! Genocide, global warming, reality TV, and just a never ending parade of failures and fuck ups! They are, without question, a complete write-off of a speciesExample output:Huohhhh. You knuw something? I weawwy hate peopwe! Theywe sewfish, ignuwant, woud obnuxious pwicks, with basicawwy nu wedeeming quawities whatsoevew. I mean weawwy, wook at aww theyve achieved! Genucide gwobaw wawming weawity TV and just a nevew ending pawade of faiwuwes and fuck ups! They awe without question a compwete wwite-off of a species (　'◟ ')CustomizationOwO()accepts custom lists of prefixes, suffixes and substitutions.OwO(prefixes,suffixes,substitutions)Things should be fairly self explanatory here;prefixesandsufffixesshould beListobjects andsubstitutionsshould be aDict.RequirementsPython 3A lack of self worth
Package: owping-parser
owping-parserThis module is just parsing the output of owping fromhttps://github.com/perfsonar/owamp/tree/master/owpingHow to useparser=owping.Parser(result)owping_result=parser.parse_owping()where result is the output string of the owping commandparse_owping is returning a OWPingResultOWPingResulthas a from_client and a from_server for the query:from_client / from_serversidfirstlastsentlostduplicatesjitterhopsdelayminmedianmax
Package: owt
pyowtA python client forIntel OWT ServerInstallationYou can install usingpip:pipinstallowtQuick StartfromowtimportConferenceClient# create a clientclient=ConferenceClient()try:# join the conference using token created by owt-server# or if your owt-server is using the demo, the package provide an# api to request token from the server directly. (It should not be permit in product environment)# from owt.utils import create_token_from_owt_demo# token = await create_token_from_owt_demo(url, user_name, role, room=room)conference=awaitclient.join(token)# To publish, you need a LocalStream.# To create a localStream, you need a MediaStreamTrack# which is the class of package aiortc.# So you can find document of how to create a MediaStreamTrack# from https://github.com/aiortc/aiortc.# Here I provide a simple way to create it:stream=create_local_tracks('file',Path.join(Path.dirname(__file__),'fixtures/video.mp4'))# You can add some custom attribute to the stream. After published,# another endpoint will accept it and using it to distinguish the stream.stream.attributes={'tag':'test-video','origin':stream.id,}# now publish it.pub=awaitclient.publish(stream)# Though after the method publish returned, the publication is completed.# you may not accept the new remote stream# (Of course you can subscribe the stream you published)# immediately. Here I provide an api to wait it.remote_stream=awaitclient.wait_for_stream(lambdast:st.attributes.get('origin')==local_stream.id,timeout=10)# now you can subscribe the video you just publishedsub=awaitclient.subscribe(remote_stream)# You can read the video stream from sub.video_track()# or audio stream from sub.audio_track()track=sub.video_track()# We know we just publish a video, so the video track should not be NoneasserttrackwhileTrue:# What's is frame is? Please see the document of [aiortc](https://github.com/aiortc/aiortc), Of course, you can convert it to numpy array.frame=awaittrack.recv()# do something about the frameawaitsub.close()awaitpub.close()finally:awaitclient.leave()This package is based onaiortcbecause it need the support of webrtc tec. Andaiortcis based onpyav. So I suggest you read the document of them too.Here is another useful api:fromowtimportConferenceClientclient=ConferenceClient()try:awaitclient.join(token)asyncdefconsume_stream(stream:RemoteStream):# first filter the streamif...:# then subscribe itsub=awaitclient.subscribe(stream)track=sub.video_track()# then process itwhileTrue:frame=awaittrack.recv()...# The method consume_streams will consume all the remote streams# (Someone published, here someone include yourselvies.),# including the stream exist and coming in in future.# Here timeout mean the method will wait 10 second until all the# consume_stream callbacks have done and no new remote streams found.handle=client.consume_streams(consume_stream,timeout=10)# The handle will return only when all your consume_stream callbacks# have done and no new remote streams found for 10 seconds.awaithandle.wait()finally:# leave the conference will automatically close all the# related publications and subscribationsawaitclient.leave()
Package: ox3apiclient
ox3apiclientA small class to help connect to the OpenX Enterprise API. As of version 0.5.0 it  usesrequests_oauthlibinstead of oauth2.It currently supports Python 2.6 - 3.5.As of version 0.4.0, ox3apiclient supports API v2. If your instance is v2,
set the api_path option to "/ox/4.0".As of version 0.5.0 the client.request method returns a requests.Response object instead of
urllib2.Response and throws a requests.exceptions.HTTPError instead of urllib2.HTTPError.
In addition debugging is now available via the standard python logging facility.See therequests documentationfor details.Basic usage:importox3apiclientimportloggingox=ox3apiclient.client_from_file().logon()ox.logger.setLevel(logging.DEBUG)ch=logging.StreamHandler()ch.setLevel(logging.DEBUG)ox.logger.addHandler(ch)accounts=ox.get('/account')order={'status':'Active','name':'OX3APIClient Object Creation Test','account_uid':accounts['objects'][0]['account_uid'],'start_date':'2016-06-01 00:00:00'}new_order=ox.post('/order',data=order)ox.delete('/order/%s'%new_order['uid'])ox.logoff()InstallationFrom PypiThe last released version (from the master branch) is available atPyPi$ pip install ox3apiclientFrom Github:Just clone our git repo:$ git clone https://github.com/openx/OX3-Python-API-Client.gitInstall the downloaded library:python setup.py installthis will install the current dependencies.AuthenticationThe recommended method of authentication is to useox3apiclient.client_from_file.
By default this will look for a file named.ox3rcin the current current
directory, but this can be overwritten by specifying afile_pathparameter. The
file should be in the following format:[ox3apiclient]
envs=
    dev
    prod

[dev]
email: you@example.com
password: password123
domain: dev.uidomain.com
realm: dev.uidomain_realm
consumer_key: 1fc5c9ae...
consumer_secret: 7c664d68...
authorization_url: http://custom_sso.uidomain.com/api/index/initiate

[prod]
email: you@example.com
password: password123
domain: uidomain.com
realm: uidomain_realm
consumer_key: 1fc5c9ae...
consumer_secret: 7c664d68...ox3apiclient.client_from_filewill use the firstenvby default but this can
be overwritten by setting theenvparameter. If your email and password are set
in.ox3rcyou can simply chain a call tologon().Alternatively you can set everything in your code.email='you@example.com'password='password123'domain='uidomain.com'realm='uidomain_realm'consumer_key='1fc5c9ae...'consumer_secret='7c664d68...'ox=ox3apiclient.Client(email=email,password=password,domain=domain,realm=realm,consumer_key=consumer_key,consumer_secret=consumer_secret)ox.logon(email,password)# To run these tests. Install nose (pip install nose)
# and run nosetests -sxv tests/  from the root dirTestsInstall nosepipinstallnoseand run the following command line from the root:nosetests-sxvtests/
Package: oxasl-enable
ENABLE - ENhancement of Automated Blood fLow EstimatesENABLE is a technique to evaulate image quality in multi-PLD ASL data.Shirzadi et al, "Enhancement of Automated Blood Flow Estimates (ENABLE) From
Arterial Spin-Labelled MRI" J Magn Reson Imaging. 2017 Jul 6. doi: 10.1002/jmri.25807ENABLE performs the following steps:Apreprocessingstep, consisting of tag/control differencing, brain
extraction, T1 co-registration and segmentationAsortingstep in which quality measures are calculated for each
PLD image, namely:Contrast:Noise ratio in GM (CNR)Detectibility metric (DETECT, proportion of voxels with significantly greater than zero signal in GM)Coefficient of variation of difference data (COV, spatial standard deviation divided by spatial mean in GM)Temporal SNR (TSNR, spatial mean of ASL image divided by temporal STD image in GM)Aselectionstep in which a combined quality measure is calculated and the best image is identified:0.1CNR + 1.8DETECT - COV - TSNRACBF generationstep in which a CBF image is generated from the best imageUsageoxasl_enable -i <ASL input file> -t1 <T1 image> -n <Noise ROI image> -o <Output dir>oxasl_enable can also be used as a plug-in for the OXASL ASL processing pipeline - see documentation
for this tool at:https://oxasl.readthedocs.io/Options--version      show program's version number and exit
-h, --help     show this help message and exit
-i INFILE      ASL data file
--t1=T1        T1 map
-n NOISE       Noise ROI
-o OUTPUT      Output dir
--debug=DEBUG  Debug mode
Package: oxasl-mp
OXASL_MPPlugin for the OXASL pipeline to support multiphase ASL data.The multiphase data is fitted to the multiphase model and the
output magnitude is used as the differenced output for
conventional ASL modellingIssuesOne issue is that for multi-PLD data the phase offset map
is not shared between PLDs. To solve this problem we need to
modify the multiphase model to accept multi-PLD data directly.CitationQuantitative blood flow measurement in rat brain with multiphase arterial spin labelling magnetic resonance imaging.Larkin, James R, Manon A Simard, Alexandre A Khrapitchev, James A Meakin, Thomas W Okell, Martin Craig, Kevin J Ray, Peter Jezzard, Michael A Chappell, Nicola R Sibson.
Journal of Cerebral Blood Flow & Metabolism.https://doi.org/10.1177/0271678X18756218
Package: oxasl-optpcasl
OXASL_OPTPCASLPython tool for optimizing multi-PLD pCASL acquisitionsFor documentation see:https://oxasl_optpcasl.readthedocs.io/ReferencesWoods JG, Chappell MA, Okell TW. A general framework for optimizing
arterial spin labelling MRI experiments. Magn Reson Med. 2019;81:2474-2488.https://doi.org/10.1002/mrm.27580Woods JG, Chappell MA, Okell TW. Designing and comparing optimized
pseudo-continuous Arterial Spin Labeling protocols for measurement of
cerebral blood flow NeuroImage 2020 223:1053-8119https://doi.org/10.1016/j.neuroimage.2020.117246
Package: oxasl-ve
OXASL_VEPython interface to the C++ based VEASLC tool for Vessel-encoded ASL designed for use with the OXASL
processing pipelineCitationA General Framework for the Analysis of Vessel Encoded Arterial Spin Labelling for Vascular Territory MappingM Chappell, T Okell, P Jezzard and M Woolrich
Magnetic Resonance in Medicine 64:1529-1539 (2010)
Package: oxauth
auth-pythonAPython packagewith strategies for reading OpenStax authentication cookies.Usagepip install oxauthfromoxauthimportStrategy2strategy=Strategy2(signature_public_key="-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----"signature_algorithm="RS256",encryption_private_key="encryption_private_key_here",encryption_algorithm="A256GCM",encryption_method="dir")payload=strategy.decrypt(cookie)# cookie is the body of the auth cookiepayload.user_uuid# this is the user's UUIDNote that the part that is hidden above is the signature private key, without which
others cannot forge a cookie value.If the cookie is bad or the keys don't work on it, thepayloadwill have valueNone.DevelopmentAll development is done inside a docker container.  From your host running Docker, in this directory run:$> docker-compose up -d
%> ./docker/bashThis will drop you into the running containerRun testsFrom within the container, you can run tests with:$ /code> python -m pytestFor debugging, you can useipdb, e.g.import ipdb; ipdb.set_trace()When running tests with the debugger make sure to use the-soption to prevent pytest from capturing output.$> python -m pytest -s tests -k 'test_decrypts'Note thatpytestis also on thePATHso you can call it directly.DistributingFrom within the container, build the distributions:$> python setup.py sdist bdist_wheelTo upload:$> python -m twine upload dist/*Note on namesWe started naming the packageopenstax_authbut there seems to be weirdness in how different parts of the Python tooling replace underscores with hyphens.  We want the package name to be simple and not confusing onimportso we shortened tooxauth.
Package: oxautocompletion
0xAutoCompletionA Handy Package to add Auto-CompletionInstallation :From pip :pip3installoxautocompletionFrom source :gitclonehttps://github.com/0x68616469/oxautocompletion/Requirements :oxansi(downloaded automatically with pip)Example :fromoxautocompletionimportcompletewordlist=["John","Jarvis","Patrick","Kevin","Angela","Laura"]print("Name :")word=complete(wordlist,case_sensitive=False)print(f"Hi{word}")result :
Package: oxbow
py-oxbowA Python interface foroxbow.
Read specialized bioinformatic file formats into dataframes.InstallationWarning:oxbowis new and under active development. It is not yet
ready for production as APIs are subject to change.pipinstalloxbowUsageAPI Documentationimportoxbowasoxarrow_ipc=ox.read_bam("data.bam","chr1:1-100000")# Read into polarsimportpolarsaspldf=pl.read_ipc(arrow_ipc)# Read into pandasimportioimportpyarrow.ipcdf=pyarrow.ipc.open_file(io.BytesIO(ipc)).read_pandas()DevelopmentThis project usesmaturinandhatchfor development, which can be installed withpipx.# create a virtual envhatchshell# compile a development version of the packagematurindevelop--release# open the jupyter notebooks/jupyterlabA local build ofoxbowwill be added to your virtual environment.importoxbowasox
Package: oxbuster
0xMenuA Handy Script for Finding Website Directories using WordlistsInstallation :From pip :pip3installoxbusterFrom source :gitclonehttps://github.com/0x68616469/oxbuster/Requirements :oxansioxflags(downloaded automatically with pip)Arguments :OptionDescriptionDefault-u--urlChoose Target URL-w--wordlistWordList path-o--outputWrite in output pathFalse-v--verboseVerbose modeFalse-f--full-urlPrint the entire URLFalse-t--targetChoose Target Status Code200-s--suffixSuffix (.html/.php...)None-sl--show-lengthPrint content lengthFalse-fl--filter-lengthFilter by content lengthFalse-ro--robots-txtSearch for robots.txtFalseExample :oxbuster-ulocalhost:8080-wwordlist.txtresult :WordlistsNode-Dirbuster WordListsDirbuster-ngKaliListsWeb wordlists in 2021
Package: oxdomains
0xDomainsA Handy Script for Finding Sub-Domains using google dorks and certspotter.comInstallation :From pip :pip3installoxdomainsFrom source :gitclonehttps://github.com/0x68616469/oxdomains/Requirements :oxansioxflagsgoogle(downloaded automatically with pip)Example :oxdomains-uhackerone.comresult :[v] Found 9 subdomains :-api.hackerone.com-hackerone.com-www.hackerone.com-support.hackerone.com-docs.hackerone.com-mta-sts.hackerone.com-mta-sts.managed.hackerone.com-mta-sts.forwarding.hackerone.com-design.hackerone.comArguments :OptionDescriptionDefault-u--urlChoose Target URL-a--api-keycertspotter.com API keyNone
Package: oxeekparser
Подготовка модуля к интеграции парсераУстановка необходимых зависимостейВыполните установку oxeekparserpip install oxeekparserИмпорт библиотеки в модульИмпортируйте библиотеку, установленную в предыдущем шагеfrom oxeekparser import ParserНастройка средыУстановите последнюю стабильную версию браузера Chromehttps://www.google.com/intl/ru/chrome/browser-tools/Загрузите последнюю стабильную версию ChromeDriverhttps://chromedriver.chromium.orgСоздайте папку с профилем Chrome или укажите папку профиля вашего собственного браузераИспользование в модулеСоздайте экземпляр класса Parser и перейдайте в качестве параметров:1. Путь до ChromeDriver
2. Путь к профилю Chrome
3. Время ожидания парсера
Package: oxenai
🐂 🐍 Oxen Python InterfaceThe Oxen python interface makes it easy to integrate Oxen datasets directly into machine learning dataloaders or other data pipelines.RepositoriesThere are two types of repositories one can interact with, aLocalRepoand aRemoteRepo.Local RepoTo fully clone all the data to your local machine, you can use theLocalRepoclass.importoxenrepo=LocalRepo("path/to/repository")repo.clone("https://hub.oxen.ai/ox/CatDogBBox")If there is a specific version of your data you want to access, you can specify thebranchwhen cloning.repo.clone("https://hub.oxen.ai/ox/CatDogBBox",branch="my-pets")Once you have a repository locally, you can perform the same operations you might via the command line, through the python api.For example, you can checkout a branch, add a file, commit, and push the data to the same remote you cloned it from.importoxenrepo=LocalRepo("path/to/repository")repo.clone("https://hub.oxen.ai/ox/CatDogBBox")repo.checkout()Remote RepoIf you don't want to download the data locally, you can use theRemoteRepoclass to interact with a remote repository on OxenHub.importoxenrepo=RemoteRepo("https://hub.oxen.ai/ox/CatDogBBox")To stage and commit files to a specific version of the data, you cancheckoutan existing branch or create a new one.repo.create_branch("dev")repo.checkout("dev")You can then stage files to the remote repository by specifying the file path and destination directory.repo.add("new-cat.png","images")# Stage to images/new-cat.png on remoterepo.commit("Adding another training image")Note that no "push" command is required here, since the above code creates a commit directly on the remote branch.
Package: oxfel
ocelot xfel modelAdapted fromhttps://www.desy.de/xfel-beam/s2e/xfel/Nominal/nom250pC.htmlwhich remains the official public EuXFEL ocelot model.  This reposity is here for me to make my life easier and to make running start to end simulations less tedious, error-prone and complicated.  It is not an official, DESY-endorsed model of the EuXFEL.Free software: MIT licenseDocumentation:https://oxfel.readthedocs.io.History0.1.0: Started with model of ocelot I got from Sergey for simulating the injector.OverviewTODOAutomatic CSR bunch length parametrisationDeal with doubled up marker choice (e.g. DUMP.CSR.START).FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: oxflags
0xFlagsA Handy Package to Parse Command-Line ArgumentsInstallation :From pip :pip3installoxflagsFrom source :gitclonehttps://github.com/0x68616469/oxflags/Requirements :oxansioxtables(downloaded automatically with pip)Example :fromoxflagsimportFlagflag=Flag(description="A Handy Package to Parse Command-Line Arguments, made by @0x68616469")flag.new(short="-e",full="--example",type="string",default="Default string",help="Description/Usage")flag.new(full="--age",required=True,type="int",default=None)flag.new(short="-y",full="--yes",type="bool")flag.parse()print(f"Example:{flag.example}")print(f"Age :{flag.age}")print(f"Yes :{flag.yes}")# $ python3 test.py --age 10 -y# Example: Default string# Age : 10# Yes : True
Package: oxford
This package contains a set of intelligent APIs understanding images: It can detect and analyze people’s faces, their age, gender, and similarity. It can identify people based on a set of images. It can understand what is displayed in a picture and crop it according to where the important features are. It can tell you whether an image contains adult content, what the main colors are, and which of your images belong in a group. If your image features text, it will tell you the language and return the text as a string. It’s basically magic. For more details on the Project Oxford API, please visit projectoxford.ai.InstallationTo install the latest release you can usepip.$ pip install oxfordUsageNote: before you can send data to you will need an API key. There is are separate API keys for face and vision.Face detectionfromoxfordimportFaceclient=Face('<api_key>')result=client.face.detect({'url':'https://upload.wikimedia.org/wikipedia/commons/1/19/Bill_Gates_June_2015.jpg'})printresult['faceId']printresult['attributes']['age']LicenseLicensed as MIT - please see LICENSE.txt for details.
Package: oxforddictionaries
Oxford Dictionary API Python WrapperThis is a python wrapper for the Oxford Dictionary API.
The Oxford API offers a free plan with up to 3,000 requests per month with ull access to Oxford Dictionaries data, although you will need to register for an API key. Sign uphere.Installationgit clone git@github.com:RafaelBroseghini/OxfordAPI.gitcd OxfordAPIpython OxfordDictionaries.pyUsageThe code below shows how to quickly get 10 synonyms for a chosen word.fromoxforddictionaries.wordsimportOxfordDictionarieso=OxfordDictionaries.Oxford(app_id,app_key)relax=o.get_synonyms("absorb").json()synonyms=relax['results'][0]['lexicalEntries'][0]['entries'][0]['senses'][0]['synonyms']forsinrange(10):print(synonyms[s]['text'])ContributingFork it!Create your feature branch:git checkout -b my-new-featureCommit your changes:git commit -am 'Add some feature'Push to the branch:git push origin my-new-featureSubmit a pull request :+1:
Package: oxfordpy
oxfordpyoxfordpy is a python library for theoxford dictionary API.InstallationUse the package managerpipto install oxfordpy.Installation using pippipinstalloxfordpyInstallation from sourcegitclonehttps://github.com/spacesudo/oxfordpy.gitcdoxfordpy
pythonsetup.pyUsageimportoxfordpydictionary=oxfordpy.Oxford()search=dictionary.entries("example")#search for "example"print(search)ConfigurationTo configure the library pass your configurations to theoxfordpy()class.importoxfordpyoxford=oxfordpy.Oxford(app_id="<your id>",app_key="<your key>",timeout=(2,6))#timeout should be a tupleCommon IssuesAuthentification errorPlease now that the api key and id used for this package is for test purpose only.
Some features of the API are not accessible with a Developer API credentials.If you face any other issue please kindly let me knowRoadmapPlease know that this library is still under developmentFuture updates of this library will have advanced features and probably use other dictionary API like Meriam Webster support and otherswhile this library is production ready please remember to regularly update the library usingpip install oxfordpy --upgradeSocial mediaYou can follow me on:Twitter@derankemor send a message on telegram@spacesudoContributingPull 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.LicenseThis project is licensed under theMITLicense.
Package: oxfs
OxfsOxfs is a user-space network file system similar to SSHFS, and the underlying data transfer is based on the SFTP protocol. Oxfs introduces an asynchronous refresh policy to solve the jamming problem caused by the mismatch between network speed and user operation file speed. When Oxfs writes a file, it first writes to the local cache file and submits an asynchronous update task to update the content to the remote host. Similarly, when reading a file, it is preferred to read from a local cache file. Oxfs's data cache eventually falls to disk, and even if it is remounted, the history cache can still be used.Get Starthttps://oxfs.io