Saravanan666/pypi-org huggingface dataset:
Package: poseidon-py
poseidon-pyPoseidon hash Python library with Hades permutationimplemented in C.Currently, the parameters for poseidon hash are set to define the permutation used in Starknet.They can be found inposeidon_params.txt.ChangelogVersion 0.1.4 (2024-02-12)Add support for Windows (Python 3.12)Version 0.1.3 (2023-04-27)Add support for WindowsAdd support for Python >=3.8Version 0.1.2 (2023-04-13)Remove make dependencyVersion 0.1.1 (2023-04-07)Initial release
Package: poseidon-rules
Poseidon RulesValidate complex json data against rules you defined.Philosophy of this libraryBusiness code has complex logic, and they can be wrapped deeply, so we need a DSL to define these rules in one place.Every logic can have two basci relation,andoror, but thenotlogic is left to the rule evaluation written by developer.Once one rule is not satisfied, the whole logic rule will be falsy, call the help functionget_reason_stackwill find the deepest name of rule, aka the exception message wrapped in theRuleFail.Rules is defined in dict format, which is bad compared to the Haskell lazy evaluation. So you can pass a closure function to the "must" or "else_must", which will be called when "if" is evaluated to true ("must") or false ("else_must") at runtime, instead of define-time. This feature make you free from caring about the exception in some situations.UsageSeetest
Package: pose-openvr-wrapper
A convenient pose wrapperRequirementsYou need steamVR running to use it.UsageSimple sampling example, return dictionnary poses values converted to different
useful formats."""Example script using pose_openvr_wrapper."""
import pose_openvr_wrapper

pyopenvr_wrapper = pose_openvr_wrapper.OpenvrWrapper('cfg/config.json')
print(pyopenvr_wrapper.devices)

samples = pyopenvr_wrapper.sample('tracker_0', samples_count=10)
print(samples)it's also possible to get relative poses, from choosen reference device to
target device.relative_samples = pyopenvr_wrapper.sample(
       ref_device_key='tracking_reference_1',
       target_device_key='tracker_0', samples_count=10)

print(relative_samples)Example config file :It require a config file to always keep same tracker/lighthouses names.{
    "devices":[
        {
          "name": "tracking_reference_0",
          "type": "tracking_reference",
          "serial":"LHB-02F97E98"
        },
        {
          "name": "tracking_reference_1",
          "type": "tracking_reference",
          "serial":"LHB-431A55FD"
        },
        {
          "name": "tracker_0",
          "type": "tracker",
          "serial":"LHR-3CD1A9DA"
        },
        {
          "name": "tracker_1",
          "type": "tracker",
          "serial":"LHR-25865D81"
        },
        {
          "name": "tracker_2",
          "type": "tracker",
          "serial":"LHR-4359D2B6"
        }
    ]
}
Package: poser
import poser, toolzhttps://toolz.readthedocs.io/en/latest/composition.htmlBe aposerHow is functional programming like legos.https://toolz.readthedocs.io/en/latest/composition.html#legoposeris a API for lazy, (dys)functional python programming. It allows complex functions to be composed using fluent or symbollic interfaces.pipinstallposerdysfunctional programming=== Functional programming with all the side effects.New to [functional programming]? Functional programming uses declarative functions to compose complex operations on arguments.
If you are familiar with python then [toolz][toolz] is a great starting point, [poser][poser] is a compact [API] for [toolz] and the python
[standard library].poserposerAPIfrom poser import λ, Λ, starsλis a composition that always returns a function. For example, below we create a list of numbers from 1 to a some value>>> f = λ.range(1).list(); f
λ(<class 'list'>, functools.partial(<class 'range'>, 1))
>>> assert callable(f)
>>> f(5), f(10)
([1, 2, 3, 4], [1, 2, 3, 4, 5, 6, 7, 8, 9])posercan use forward references to lazily import modules.>>> g = λ.range(1).enumerate().dict()['pandas.Series']; g
λ(ForwardRef('pandas.Series'), <class 'dict'>, <class 'enumerate'>, functools.partial(<class 'range'>, 1))
>>> λ(9) + g + type + ...
<class 'pandas.core.series.Series'>Λis for object function composition where the
function represents symbollic or chained methods>>> (Λ*10+2)(1)
12
>>> assert (Λ*10+2)(1) == 1*10+2
>>> s = "A formatted string :{}: with a %s"
... (Λ.format('foo') % '% formatted').upper()(s)
'A FORMATTED STRING :FOO: WITH A % FORMATTED'

>>> assert (Λ.format('foo') % '% formatted').upper()(s)\
... == (s.format('foo') % '% formatted').upper()TheposerAPI expresses all of the symbols in the python data model.  Refer to the tests for examples.juxtaposition>>> assert isinstance(λ[range, type, str](10), tuple)
>>> assert isinstance(λ[[range, type, str]](10), list)
>>> assert isinstance(λ[{range, type, str}](10), set)Value and keyword functions can be supplied to juxtapose functions across dictionaries.λ[{'a': range, type: str}](10)
{'a': range(0, 10), int: '10'}Example recipes.get = λ['functools.lru_cache']()(λ['requests.get'][λ[Λ.json()] ^ BaseException | Λ.text()]); get

read = λ**Λ.startswith('http') & get | λ.Path().read_text()
Package: poserbox
Poser Box---------Poser Box helps starting and stopping a sandboxed Poser instancefrom within a Python process. The Poser instance will choose a free port onlocalhost.It is primarily expected to be used in tests.A typical use of a Poser Box:```pythonimport requestsfrom poserbox import PoserBoxbox = PoserBox(scenes_file="test.yaml", proxy="http://example.com")box.record()real = requests.get("http://localhost:%s" % box.port)box.stop()box.play()fake = requests.get("http://localhost:%s" % box.port)box.stop()assert real.content == fake.content```Nose----Poser Box comes with a Nose plugin which is automatically installed.If used as a plugin, port of the running instance will be exportedin environment variable `POSERBOX_PORT`. This name can be overriddenin settings.The plugin exposes several configuration options. To see them, run:nosetests --helpThe options you are interested in start with `--poserbox-`.Installation------------Get it from PyPi:pip install poserboxGet it from GitHub:pip install https://github.com/ziadsawalha/poserbox.gitAuthors=======Ziad SawalhaThanks------PoserBox is based on mongobox by Roman Kalyakin.For a list of contributors see `AUTHORS.md`.
Package: pose-trigger
Pose-TriggerPose-Trigger is a python application for real-time, closed-loop application
of TTL trigger generation based on the pose of the subject.(This is a screenshot from a development version)DocumentationOn-line HTML versionPDF versionLicenseCode files in this repository: 2020 Keisuke Sehara and Paul Zimmer-Harwood, the MIT LicenseFastEventServer: 2019 Keisuke Sehara, the MIT Licensearduino-fasteventtrigger: 2019 Keisuke Sehara, the MIT LicenseContents of theresourcesanddocsdirectory, including the documentation: Creative Commons CC0 1.0 Universal Public Domain Dedication
Package: posetta
Posetta, the Universal Translator of Geodetic Coordinate File FormatsPosetta is a command line and GUI utility for translating between different
file formats used for representing geodetic coordinates.Note:Posetta is still in pre-alpha status. Its functionality will change,
and it should not be depended on in any production-like setting.Installing PosettaPosetta is available atPyPI. You can
install it by simply runningpip install posettaInstalling Posetta from sourcePosetta depends on other brilliant Python packages, like for instance numpy. We
recommend using the Anaconda distribution to ease the installation of these
dependencies.Install AnacondaGo towww.anaconda.com/download, and
download Anaconda for Python 3.Download the Posetta source codeIf you have not already done so, download the Posetta source code, fromGitHub. Then enter the mainposettadirectory before running the install commands below.cd posettaInstall dependenciesYou should now install the necessary dependencies using theenvironment.yml-file. You can do this either in your current conda
environment, or choose to create a newposetta-environment. In general, you
should installposettain its own environment.To installposettain a new environment namedposettaand activate it, doconda env create -n posetta -f environment.yml
conda activate posettaTo instead installposettain your current environment, doconda env update -f environment.ymlInstall the Posetta packageTo do the actual installation of Posetta, use theflitpackaging tool:flit install --dep productionIf you want to develop the Posetta package, install it in editable mode usingflit install -sOn Windows, you can install in editable mode usingflit install --pth-fileUsing PosettaPosetta can be used either as a command line application, or a graphical (GUI)
application.Posetta at the command lineYou can use Posetta as a command line tool. Run the following to see instructions:posetta --helpPosetta as a graphical (GUI) applicationPosetta can also be used as a simple point and click GUI application. Run the
following command to start it:posetta_gui
Package: posextract
posextractposextract offers grammatical information extraction methods designed for the analysis of historical and contemporary textual corpora. It traverses the syntactic dependency relations between parts-of-speech and returns sequences of words that share a grammatical relationship. Seeour articlefor more. You can alsodownload posextract for pypi with pip.Usageextract_triplesto extract subject-verb-object (SVO) and subject-verb-adjective complement (SVA) triplesextract_adj_noun_pairsto extract adjective-noun pairsextract_subj_verb_pairsto extract subject-verb pairsRequired Paramters:inputcan be the name of a csv file or an input stringoutputname of the output fileOptional Paramters:--data_columnspecify the column to extract triples from.--id_columnspecify a unique ID field if csv file is given.--file-delimiterspecify comma, pipe, or tab. Default is comma.--post-combine-adjcombine triples (adjective predicate with object)--add-auxiliaryextract future and past tense triples.--prep-phraseextract the . Default set to false.--no-compound-nounExtract just the subject or object (e.g. "Indian Government" is extracted as just "Government").--lemmaspecify whether to lemmatize parts-of-speech. Default is non-lemmatized.--verboseprintExamplesInteractive:Extract grammatical triples.from posextract import grammatical_triples

triples = grammatical_triples.extract(['Landlords may exercise oppression.', 'The soldiers were ill.'])

for triple in triples:
    print(triple)

# Output: Landlords exercise oppression, soldiers were illExtract grammatical triples using different options from default:from posextract.util import TripleExtractorOptions

triples = grammatical_triples.extract(sent, TripleExtractorOptions(prep_phrase = True))Or extract adjectives and the nouns they modify.from posextract import adj_noun_pairs

adj_noun = adj_noun_pairs.extract()Or extract subjects and their verbs.from posextract import subj_verb_pairs

subj_verb = subj_verb_pairs.extract()Over CLI:posextract can extract grammatical triples from text:python -m posextract.extract_triples "Landlords may exercise oppression." output.csv

# Output: Landlords exercise oppressionposextract can extract SVO/SVA relationships separately or it can combine the adjective as part of a SVO triple:python -m posextract.extract_triples "The soldiers were terminally ill." output.csv --post-combine-adj

# Output: soldiers were terminally, soldiers were illpython -m posextract.extract_triples "The soldiers were terminally ill." output.csv --post-combine-adj

# Output: soldiers were terminally illIf provided a .csv file:python -m posextract.extract_triples --data_column sentence --id_column sentence_id input.csv output.csvFor More Information...... see our Wiki:About Our Evaluation DataAbout the Syntactic Dependency ParserHow to Use posextract on Databricks
Package: poshare
poshareposhare是一个获取公开投资组合的工具，po时portfolio的缩写，share代表分享。安装pip install poshare --upgrade雪球fromposhareimportXueqiuXueqiu.config({'cookie':'your xueqiu cookie'})xq=Xueqiu(symbol='ZH1254937')# 组合名称xq.cube_name# 组合信息xq.cube_info# 股票配置（环形图）xq.cube_pie_data# 详细仓位xq.cube_tree_data# 调仓历史xq.history()# 收益率走势xq.all()# 业绩平级(雷达图)xq.summary()# 最新调仓xq.show_origin()果仁fromposhareimportGourenGouren.config({'cookie':'your guoren cookie'})gr=Gouren(symbol='2032861.R.247270131703851')# 策略详情gr.strategy()
Package: poshdate
poshdatePoshdate is a python package that creates ordinal dates from pythondatetimeanddateobjects:1st June 202123rd May 1990It is extremely lightweight having no dependencies.Getting StartedInstallationPoshdate can be installed usingpippython-mpipinstallposhdateIt is recommended to use a virtual environment for your project.UsagePoshdate requries the standard librarydatetimepackage.fromdatetimeimportdatetimeimportposhdateexample_date=datetime(2021,4,21)print(poshdate.from_datetime(example_date))# 21st April 2021Another date module ??Intended AudiencePoshdate provides a human readable date in the ordinal format.
This is intended to be of use in report and document generation where
an approximation of a handwritten style of date is seen as nicer and a bit classier than the standard output.In other words21st January 2020looks better on the page than21 January 2020or21/01/2020What about existing packages ?The python standard librarydatetimemodule provides many useful string formatting options via the.strftime()method. However, it does not provide an option to create ordinal style dates out of the box.There are several other packages that do provide functionality to create ordinal style dates.pendulumarrowHowever, these provide a lot of extra functionality that may well be beyond the needs of a user requiring a simple ordinal style date, in addition to having several additional dependencies.
Package: poshy
Poshy, an extensible shell written in PythonPoshy is a work-in-progress shell written in Python. As of now, it has no configuration files.To install, just clone this repo and then runpip3 install .and presto!For aya developers:AYA is an extensive python module loader that loads before start. You must have them installed as python modules.fromsetuptoolsimportsetupsetup(name='youraddonname',packages=['folder'],# the folder in which your __init__.py file is stored in, also must be your addon nameversion='1.0',# self-explanatorydescription='the addon description')here's a dummy example of what your setup.py should have. note that to load the addon, you must first install it and then put its name in ~/.ayayour__init__.pyis your addon~/.aya's structure goes as following:modules must be line separated (no commas, no same-line whitespace separated things...)an example would be:module1
module2
module3and so on.
Package: posidrive
$ posidriveThis Python library aims to make easier use Google Drive to backup/restore your data.InstallationpipinstallposidriveInstall latest development version:pip install git+https://github.com/Positeral/posidriveQuickstartLet's write a simplegd.pyscript:fromposidrive.gdriveimportGoogleDrivegdrive=GoogleDrive(folder='test')gdrive.cli()Run it from command line:pythongd.pyUsage: gd.py [OPTIONS] COMMAND [ARGS]...

Options:
  --debug  Enable debug mode.
  --help   Show this message and exit.

Commands:
  auth      Authorize Google account and save credentials.
  status    Show common information.
  list      Show files in current remote folder.
  upload    Upload file to current remote folder.
  download  Download file by ID.
  delete    Delete file by ID.
  clear     Delete all files in folder.pythongd.pystatusService:               Google Drive
Current remote folder: test
Credentials file:      /home/arthur/projects/posidrive/.pgdcredentials
Authorization:         Not authorized (credentials absent)Let's authorize the application now:pythongd.pyauthPlease visit this URL to authorize this application: https://[...]
Enter the authorization code:Follow the link, authorize the application and paste the resulting code. By default,posidriverequest you the minimal permissions. Сheck the status:pythongd.pystatusService:               Google Drive
Current remote folder: test
Credentials file:      /home/arthur/projects/posidrive/.pgdcredentials
Authorization:         Authorized
Account:               af3.inet@gmail.com
Usage:                 11.2G
Limit:                 15GGood! Now you can uselist,upload,download,deleteorclear. Don't forget that every command have--helpoption.Custom scriptsThe following script make a compressed archive and upload it to Google Drive. Then, it will delete all remote files except the last three:importosimportclickimporttarfilefromposidrive.gdriveimportGoogleDriveclassMyGoogleDrive(GoogleDrive):@GoogleDrive.cli.command('archive')@click.argument('path',required=True)defcmd_archive(self,path):'''Archive directory/file'''self.initialize()tarname=os.path.basename(path)+'.tar.lzma'tarpath=tarnametar=tarfile.open(tarpath,'w:xz')tar.add(path)tar.close()self.cmd_upload(tarpath,tarname)self.cmd_clear(keep_last=3,yes=True)gdrive=MyGoogleDrive(folder='test')gdrive.cli()
Package: posim
posimA library for generating simulated positioning data for testing GNSS applications.IntroductionPosim (short for Positioning Simulator) was created as a tool that can easily generate simualted GNSS data in any desired path, using real coordinate systems facilitated bygeographiclib. It should however be trivial to modify the code to use a different geodesic routine library to calculate the coordinates.InstallationYou can install the library via PyPI using:pip install posimPosim depends on the following external packages:numpygeographiclibmatplotlibHowever, matplotlib is only used for plotting and can therefore be considered optional.Examples...
Package: posit2023-nbdev
posit2023-nbdevThis file will become your README and also the index of your
documentation.Installpipinstallposit2023_nbdevHow to useFill me in please! Don’t forget code examples:fromposit2023_nbdev.cardimportCardfromposit2023_nbdev.deckimportDeckCard()2♣️You might want to write something hereDeck()A♣️; 2♣️; 3♣️; 4♣️; 5♣️; 6♣️; 7♣️; 8♣️; 9♣️; 10♣️; J♣️; Q♣️; K♣️; A♦️; 2♦️; 3♦️; 4♦️; 5♦️; 6♦️; 7♦️; 8♦️; 9♦️; 10♦️; J♦️; Q♦️; K♦️; A❤️; 2❤️; 3❤️; 4❤️; 5❤️; 6❤️; 7❤️; 8❤️; 9❤️; 10❤️; J❤️; Q❤️; K❤️; A♠️; 2♠️; 3♠️; 4♠️; 5♠️; 6♠️; 7♠️; 8♠️; 9♠️; 10♠️; J♠️; Q♠️; K♠️
Package: positional
A decorator which enforces only some args may be passed positionally. This library is minimally maintained and should only be used in cases of Python 2 to Python 3 conversions. Please write only Python 3 code going forward.The Basicspositionalprovides a decorator which enforces only some args may be passed
positionally. The idea and some of the code was taken from the oauth2 client
of the google-api client.The decorator makes it easy to support Python 3 style key-word only
parameters. For example, in Python 3 it is possible to write:>>>deffn(pos1,*,kwonly1,kwonly2=None):......All named parameters after*must be a keyword:>>>fn(10,'kw1','kw2')# Raises exception.>>>fn(10,kwonly1='kw1',kwonly2='kw2')# Ok.To replicate this behaviour with the positional decorator you simply specify
how many arguments may be passed positionally.First to import the decorator we typically use:>>frompositionalimportpositionalReplicating the Example above:>>>@positional(1)...fn(pos1,kwonly1=None,kwonly2=None):......If no default value is provided to a keyword argument, it becomes a required
keyword argument:>>>@positional(0)...deffn(required_kw):......This must be called with the keyword parameter:>>>fn()# Raises exception>>>fn(10)# Raises Exception>>>fn(required_kw=10)# OKWhen defining instance or class methods always remember that in python the
first positional argument passed is the instance; you will need to account forselfandcls:>>>classMyClass(object):......@positional(2)...defmy_method(self,pos1,kwonly1=None):............@classmethod...@positional(2)...defmy_method(cls,pos1,kwonly1=None):......If you would prefer not to account forselfandclsyou can use themethodandclassmethodhelpers which do not consider the initial
positional argument. So the following class is exactly the same as the one
above:>>>classMyClass(object):......@positional.method(1)...defmy_method(self,pos1,kwonly1=None):............@positional.classmethod(1)...defmy_method(cls,pos1,kwonly1=None):......If a value isn’t provided to the decorator then it will enforce that
every variable without a default value will be required to be a kwarg:>>>@positional()...deffn(pos1,kwonly1=None):.........>>>fn(10)# Ok.>>>fn(10,20)# Raises exception.>>>fn(10,kwonly1=20)# Ok.This behaviour will work with thepositional.methodandpositional.classmethodhelper functions as well:>>>classMyClass(object):......@positional.classmethod()...defmy_method(cls,pos1,kwonly1=None):.........>>>MyClass.my_method(10)# Ok.>>>MyClass.my_method(10,20)# Raises exception.>>>MyClass.my_method(10,kwonly1=20)# Ok.For compatibility reasons you may wish to not always raise an exception so
a WARN mode is available. Rather than raise an exception a warning will be
emitted.>>>@positional(1,enforcement=positional.WARN):...deffn(pos1,kwonly=1):......Available modes are:positional.EXCEPT - the default, raise an exception.positional.WARN - emit a warning.
Package: positional-defaults
positional_defaultsPython package to set defaults for any positional-only parameterThis tiny Python package contains a decorator@defaultswhich lets you
specify default arguments for any positional-only parameter, no matter where
it appears in the argument list.Installationpip install positional_defaultsUsageUse the@defaultsdecorator to set default values for positional-only
parameters (i.e. those before the positional-only indicator/):frompositional_defaultsimportdefaults@defaults(start=0)defmyrange(start,stop,/,step=1):...# now these are equivalentmyrange(4)myrange(0,4)myrange(0,4,1)This works on methods as well:classA:@defaults(start=0)defmyrange(self,start,stop,/,step=1):...Multiple defaults can be set, which are filled in the order in which they are
specified:@defaults(forename='Alice',greeting='Welcome',prefix='Mrs')defgreet(greeting,prefix,forename,surname,/,suffix='Esq'):...# these are now equivalentgreet('Smith')greet('Alice','Smith')greet('Welcome','Alice','Smith')greet('Welcome','Mrs','Alice','Smith')greet('Welcome','Mrs','Alice','Smith','Esq')SignaturesLeft-defaulted functions come with the correct signature:>>>frominspectimportsignature>>>signature(myrange)<Signature(start=0,stop,/,step=1)>>>>signature(greet)<Signature(greeting='Welcome',prefix='Mrs',forename='Alice',surname,/,suffix='Esq')>These show up correctly in the usual places such ashelp():>>>help(myrange)Helponfunctionmyrange:myrange(start=0,stop,/,step=1)>>>help(greet)Helponfunctiongreet:greet(greeting='Welcome',prefix='Mrs',forename='Alice',surname,/,suffix='Esq')PerformanceWhen the package is compiled as a native extension (which is what pip will
deliver in the majority of cases), functions with positional defaults have
comparable performance with respect to their undecorated functions.