Saravanan666/pypi-org huggingface dataset:
Package: onepm-shims
onepmPicks the right package manager for you.Don't make me think about which package manager to use when I clone a project from other people. OnePM will pick the right package manager by searching for the lock files and/or the project settings inpyproject.toml.This project is created in the same spirit as@antfu/ni.Supported package managers:pip,pipenv,poetry,pdmInstall onepmInstall withpipx:pipxinstallonepmOr use pdm global install:pdmadd-gonepmProvided Shortcutspi- installpi# (venv) pip install . or pip install -r requirements.txt# pipenv install# poetry install# pdm installpirequests# (venv) pip install requests# pipenv install requests# poetry add requests# pdm add requestspu- updatepu# not available for pip# pipenv update# poetry update# pdm updatepr- runpr...args# (venv) ...args# pipenv run ...args# poetry run ...args# pdm run ...argspun- uninstallpunrequests# pip uninstall requests# pipenv uninstall requests# poetry remove requests# pdm remove requestspa- Alias for the package managerpa# pip# pipenv# poetry# pdmIf the package manager agent is pip,OnePM will enforce an activated virtualenv, or a.venvunder the current directory.Shims for Package ManagersOnePM also provides shim for the package managers likecorepack,
so you don't need to install package managers yourself. To enable it, install OnePM withshimsextra:pipxinstallonepm[shims]OnePM reads thepackage-managerfield under[tool.onepm]table inpyproject.toml, and install the required package manager with the correct version in an isolated environment.[tool.onepm]package-manager="poetry"Or you can restrict the version range:[tool.onepm]package-manager="poetry>=1.1.0"For Python package management, OnePM is all you need.OnePM Management Commandsonepm install: Install the package manager configured in project fileonepm use $SPEC: Use the package manager given by the requirement speconepm update|up: Update the package manager used in the projectonepm cleanup [$NAME]: Clean up installations of specified package manager or allonepm list|ls $NAME: List all installed versions of the given package manager
Package: oneprint
oneprintoneprint is a uniform print library. It use XML to define print data. Now it can convert XML to ESC/POS data or Pillow Image object.Install Dependenciespip install requests qrcode pillow pystrich python-escposInstall oneprintpip install oneprintXML define syntax<!-- define a paper --><xmlwidth="384|576|..."><!-- show text --><textalign="left|right|center"font="A|B">Hello</text><!-- show a horizontal line --><hrchar="-|*|+..."/><!--  show image  --><imgalign="left|right|center"src="https://xxx"/><!--  show QRCode  --><qrcodenative="false|true"align="left|right|center">Hello</qrcode><!--  show barcode  --><barcodealign="left|right|center"type="code128|ean13">123456789012</barcode><!--  show table  --><tableborder="1|2|3..."><trborder="1|2|3..."><tdalign="center"colspan="1|2|3..."width="1|2|3...">Time</td><tdalign="center"width="1|2|3...">Content</td><tdalign="center"width="1|2|3...">Remark</td></tr></table></xml>XML define demo<xml><!-- text --><textalign="center">oneprintisauniformprintlibrary,supportESC/POSprinter.</text><!-- table --><hr/><text/><table><tr><tdalign="left">日期:2021-04-28</td><tdalign="right">编号:0001</td></tr></table><text/><tableborder="1"><trborder="1"><thcolspan="3"align="center"width="8">Title</th></tr><trborder="1"><thalign="center"width="8">Time</th><thalign="center"width="20">Content</th><thalign="center"width="20">Remark</th></tr><trborder="1"><td>18:00</td><td>Thisiscontentfield!Justtest!</td><tdalign="center">Empty</td></tr><trborder="1"><td>19:00</td><tdcolspan="2">Content2</td></tr></table><text>AImage</text><!-- image --><imgalign="center"src="https://img3.doubanio.com/dae/accounts/resources/527f922/sns/assets/lg_main@2x.png"/><text>AQrcode</text><!-- qrcode --><qrcodealign="center">Hello</qrcode><text>ABarcode</text><!-- ean13 barcode --><barcodealign="center"type="ean13">123456789012</barcode><!-- cur the page --><cut/></xml>The result:Usage# print to a image and showdata='''<text>Hello World</text><qrcode>Hello World</qrcode>'''fromoneprintimportImageDrawPrintpt=ImageDrawPrint()pt.auto_print(data)pt.show()# use Pillow Image.show()# save to filept.get_image().save('/tmp/tt.jpeg')# or print with python-escposfromoneprintimportEscPosPrintep=EscPosPrint()ep.auto_print(data)fromescpos.printerimportSerialp=Serial(devfile='/dev/tty.usbserial',baudrate=9600,bytesize=8,parity='N',stopbits=1,timeout=1.00,dsrdtr=True)p._raw(ep.get_data())The result:Click to view more information!CHANGES1.0.0first version1.0.6support<hr/>in table1.2.0support align attribute in<text>node with ImageDrawPrint1.3.0EscPosPrint auto convert zh-hant to zh-hans when encode with gbk or gb2312.EscPosPrint ignore encode error.
Package: onepush
onepushA Python library to send notifications to your iPhone, Discord, Telegram, WeChat, QQ and DingTalk.Supported providersBark,Discord,Telegram,ServerChan,ServerChanTurbo,WechatWorkApp,WechatWorkBot,pushplus,go-cqhttp,Qmsg,DingTalk,Lark,SMTP, Customised providersInstallationVia pip:pip install onepushOr via source code:git clone https://github.com/y1ndan/onepush.git
cd onepush
python setup.py installBasic Usagefromonepushimportget_notifiern=get_notifier('bark')print(n.params)response=n.notify(key='YOUR_BARK_KEY',title='OnePush',content='Hello World!')print(response.text)# {'required': ['key'], 'optional': ['title', 'content', 'sound', 'isarchive', 'icon', 'group', 'url', 'copy', 'autocopy']}# {"code":200,"message":"success","timestamp":1633528319}Or:fromonepushimportnotifynotify('bark',key='YOUR_BARK_KEY',title='OnePush',content='Hello World!')
Package: onepx
python-self-use介绍软件架构软件架构说明安装教程https://pypi.org/project/onepx/0.0.1/pip install onepx使用说明"""
import onepxocrtext2df(text, 3)"""参与贡献Fork 本仓库新建 Feat_xxx 分支提交代码新建 Pull Request
Package: onepyece
One PyeceImage generated with Midjourney.DescriptionPythonAPI wrapperforhttps://api-onepiece.com/Thank's to this package you can simply get informations about One Piece characters, fruits, crews, etc. The datas provided by the API are in french only for the moment.Learn more about possibilities in theUsagesection.⚠️This package is still in development and it's my very first python package, so it may not be stable.What's New in v2.0Multilanguage Support:One Pyece now supports multiple languages! Starting from version 2.0, you can generate an `API` object with a language parameter, making it possible to fetch data in either French or English. English is the default language if the parameter is not set. This enhancement aims to make our API more accessible and user-friendly for our international audience.InstallationThere are several solutions :Use this commandpip install onepyeceto get it fromPyPiUse this commandpip install git+https://github.com/icepick4/onepyeceto download it from this repo.Download either the .zip or the tar.gz archive from the last release and then use this commandpip install <path_to_archive>Usage>>>importonepyeceasop>>>sanji=op.character_by_name('sanji')# You can get a character by its name>>>sanji.size>>>'180cm'>>>sanji.crew['roman_name']>>>'Mugiwara no Ichimi'>>>nb_fruits=op.count_fruits()# You can get the count of a specific endpoint>>>nb_fruits.count>>>206>>>nb_fruits.url>>>'https://api.api-onepiece.com/v2/fruits/en/count'>>>crews=op.API('crews')# List of all the crews in dict form as you can see below>>>crews[0]>>>API(object={'endpoint':None,'search_term':None,'resource':None,'lang':'en','url':None,'id':1,'name':'The Chapeau de Paille crew','description':None,'status':'assets','roman_name':'Mugiwara no Ichimi','total_prime':'3.161.000.100','number':'10','is_yonko':True})>>>crews.count# You can implicitly get the count of an endpoint by getting the whole list of it.>>>149>>>crews[1].name>>>'Le Roux crew'# Make a search on a list already fetched>>>roger_crew=crews.search('name','roger')>>>roger_crew>>>Totalcrewsfoundforthissearch:1.>>>roger_crew[0]{"endpoint":null,"search_term":null,"resource":null,"lang":"en","url":null,"id":5,"name":"The Pirates Roger crew","description":null,"status":"dissolved","roman_name":"Rojā Kaizoku Dan","total_prime":"5.564.800.000","number":"30","is_yonko":true}To learn more about the possibilities, you can check the
detaileddocumentationhereand more exampleshere.TestsYou can test the application by runningpython -m testsContributingPull requests are welcome. Do not hesitate to open an issue if you have any problem or suggestion.LicenseThis project is under the MIT License.AuthorRemi Jara
Package: onepyssword
1pwdA command line interface for1Password.Installpip install onepysswordCommand line usageTo get a password:% 1pwd github.comBy default this will look in~/Dropbox/1Password/1Password.agilekeychain.
You can set your keychain path as an enviornment variable:% export ONEPYSSWORD_KEYCHAIN=/path/to/keychainOnly for UNIX like systems you can specify your own command for copy.:% export ONEPYSSWORD_COPY_CMD=xsel,-piLicense1pwdis licensed under the MIT license. See the license file for details.Changelog0.3.2 (2014-04-29)EditorConfig support.Flake8 support.Style guide fixes.0.3.1 (2014-02-08)Nothing changed yet.0.3 (2014-02-08)Migrate to copypaste package0.2 (2014-01-18)Issue #1 ONEPYSSWORD_KEYCHAIN does not work with a ~ in itIssue #2 Current code fails with ValueError: Extra data: line 1 column 929 - line 1 column 945 (char 928 - 944)0.1 (2014-01-07)Initial release.
Package: onequant
onequantpython package for quant trading and ai learningDocumentation:https://xunzhimeng.github.io/onequantGitHub:https://github.com/xunzhimeng/onequantPyPI:https://pypi.org/project/onequant/Free software: Apache-2.0FeaturesTODOCreditsThis package was created withCookiecutterand theDarkDemiurg/cookiecutter-pypackageproject template.
Package: one-quant-data
one-quant-dataone_quant_data是A股量化数据引擎，用于为量化工具提供数据支撑目前，本库的数据来源是基于tushare.pro接口，可以认为是tushare的数据接口封装由于tushare的数据访问有一定的频率限制，为避免tushare的访问限制，将数据缓存到自己的数据库中
同时，由于数据在指定数据库中，因此又可以提供一些新的使用数据的角度安装方法$ pip install one_quant_data使用方法先建立配置文件config.json{
    "data_engine":{
        "api":{
            "name":"tushare_pro",
            "token":"your_tusharepro_token"
        },
        "cache":{
            "db":"mysql",
            "host":"yourdbhost",
            "port":3306,
            "user":"yourusername",
            "password":"yourpasswd",
            "schema":"yourdbname"
            "start_date":"20190101"  #需要缓存数据的起始日期
        }
    }
}说明：api的name可选tushare_pro或者offline，offline表示只使用数据库里的数据引用数据包from one_quant_data import DataEngine初始化类DataEngineengine = DataEngine('../config.json')同步数据，可以启动定时任务进行调用，第一次运行会建立数据库并缓存从起始日期到今天的所有数据，以后再调用时只会增量添加数据。同步数据时必须使用tushare_pro接口
同步数据的接口有两个：
sync_data_iterate_date是按日期同步，适合每天运行同步交易数据
sync_data_iterate_stock是按股票同步，用于更新不频繁的数据，可以隔一段时间再调用一次engine.sync_data_iterate_date()使用数据，使用接口与tushare.pro保持一致,区别在于只会返回缓存的数据df = engine.stock_basic()
    df = engine.pro_bar('000651.SZ',adj='qfq')
    df = engine.daily_basic(trade_date='20190926')
    df = engine.daily_basic('000651.SZ')
    df = engine.index_dailybasic(trade_date='20190926')
    df = engine.index_dailybasic('000001.SH')
    df = engine.index_daily('000001.SH')
    df = engine.fina_mainbz(ts_code='000627.SZ', type='P')
    df = engine.fina_mainbz_vip(period='20190630', type='P')需要使用tushare接口时，使用DataEngine的pro字段来访问tusharepro = engine.pro
    df = pro.query()自定义的接口接口功能输入参数输出格式说明index_codes返回缓存的指数代码listcached_range返回缓存的数据的开始，结束时间(cached_start,cached_end)输出格式为tupleattach_stock_name根据一个dataframe的ts_code，添加股票名称df带name列的dataframe必须有ts_code字段get_cached_trade_dates获得所有缓存的数据日期list
Package: one-readme
ReadmeOnly CLI Package you need to manage all your Readme.What it DoesIt creates a repository namedReadmein your local storage with all readme of your github account.RequirementsGithub AccountGithub Access TokenInstallationReadme requirespython3.7+to run.Windowspipinstallone-readme
or
pipinstall--upgradeone-readmeLinuxpip3installone-readme
orpip3install--upgradeone-readmeCLI Usageusage:readme[-h]-uU--secretSECRET[--forked][-pP]OnlyCLIPackageyouneedtoyourallReadme.

optionalarguments:-h,--helpshowthishelpmessageandexit-uUGithubusername.--secretSECRETGithubsecret.--forkedIncludesforkedrepositories.-pPSetPathtostoreReadmefiles.Examplereadme-usarvesh4396--secret************
Package: onerecord
ONE Record with PythonNote:This library is based on the latest IATA ONE Record ontology (working draft)What is ONE Record?ONE Record is a standard for data sharing and creates a single record view of the shipment.
This standard defines a common data model for the data that is shared via standardized and secured web API.
(Source:IATA - ONE Record)RequirementsPython version 3.9+InstallationInstall, upgrade and uninstallONE Record with Pythonwith these commands::$ pip install onerecord
$ pip install --upgrade onerecord
$ pip uninstall onerecordA Simple Examplefromonerecord.models.cargoimportPiecefromonerecord.clientimportONERecordClientpiece=Piece(**{'company_identifier':'cgnbeerbrewery','goods_description':'six pack of Koelsch beer','gross_weight':{'unit':'KGM','value':3.922}})piece.goods_description#> 'six pack of Koelsch beer'print(piece.json(exclude_none=True,by_alias=True))#> {"@type": "https://onerecord.iata.org/Piece", "https://onerecord.iata.org/LogisticsObject#companyIdentifier": "cgnbeerbrewery", "https://onerecord.iata.org/Piece#goodsDescription": "six pack of Koelsch beer", "https://onerecord.iata.org/Piece#grossWeight": {"@type": "https://onerecord.iata.org/Value", "https://onerecord.iata.org/Value#unit": "KGM", "https://onerecord.iata.org/Value#value": 3.922}}print(type(piece))#> <class 'onerecord.models.cargo.Piece'>print(type(piece.gross_weight))#> <class 'onerecord.models.cargo.Value'>client=ONERecordClient(host="localhost",port=8080,company_identifier="cgnbeerbrewery")piece=client.create_logistics_object(piece)print(piece.id)#> http://localhost:8080/companies/cgnbeerbrewery/los/piece-1067358949ONE Record Version SupportONE Record with PythonIATA Data Model OntologyIATA API OntologyIATA API Specv0.2.0v2.0.0v1.1v1.1........................DependenciesThisONE Record with Pythondistribution is tested on Python 3.9 and 3.10.The dependencies are:pydantic: Data validation using Python type hints (https://pydantic-docs.helpmanual.io)requests: HTTP for Humans (https://requests.readthedocs.io)
Package: one-relator-curvature
One Relator CurvatureAboutThis project provides an api for studying regular sectional curvature of one-relator groups.Installationpip install one-relator-curvatureUsageThere are two different ways of using the project, either through a collection of command line exposed functions, or as an imported python moduleCLISome function are exposed as command line tools.solve_examplesolve_examplesget_all_cycle_dataget_polytopeget_polytopesExample UsageUsing cli scriptFor solving all results in te given word range, this command stores database files in the output directory.one-relator-curvature solve_examples --output-dir /home/$USER/generated_examples --word-size-range 10 11To export polytope for a given word. Stores json for polytope in output directoryone-relator-curvature get_polytope --word BabbAba -output-dir /home/$USER/polytope_examplesTo export polytopes for cycles of a given word. Stores json for polytope in output directoryone-relator-curvature get_polytope --word BabbAba -output-dir /home/$USER/polytope_examples --cyclesImporting as Python Modulefrom one_relator_curvature.example import Example
import matplotlib.pyplot as plt

example = Example("Babba")
example.generate_inequalities()
example.solve()
example.plot()
plt.show()Importing Polytopes into PolymakeThe following code can be run as a polymake script passing the directory of any polytopes output by the commands get_polytope and get_polytopesuse JSON::Parse 'json_file_to_perl';
use JSON;
use Path::Class;
use application 'polytope';

sub read_inequalities_json {
  my $inequalities_file = $_[0];
  my $inequalities = json_file_to_perl ($inequalities_file);
  my $regions_inequalities = $inequalities->{"regions_inequalities"};
  my $links_inequalities = $inequalities->{"links_inequalities"};
  my $all_inequalities = ();

  push(@$all_inequalities, @$regions_inequalities);
  push(@$all_inequalities, @$links_inequalities);

  my $word_polytopes = {"regions" => new Polytope(INEQUALITIES=>$regions_inequalities),
            "links" => new Polytope(INEQUALITIES=>$links_inequalities),
            "intersection" => new Polytope(INEQUALITIES=>$all_inequalities)};

  return $word_polytopes;
}

sub main {
  my $polytopes_dir = dir($ARGV[0]);

  for my $polytope_file ($polytopes_dir->children) {
    my $word_polytopes = read_inequalities_json($polytope_file);
    my $intersection_polytope = $word_polytopes->{"intersection"};
    my $polytope_dim = $intersection_polytope->DIM;

    print "$polytope_file intersection polytope dimension $polytope_dim \n";
  }
}

main()
Package: onesaitplatform-client-services
Onesait Platform Python Client ServicesAPI documentationThis document describes the source code for the Onesait Platform Python Client Services.This code provides several client classes which enable applications to connect to a Onesait Platform instance and perform basic CRUD operations.Before using the client services for the first time, we strongly recommend that you learn the main concepts of the Onesait Platform platform.It supports Python 3.4+Installation instructionsIn order to use this API, you must havepipinstalled in your system. The pip website (https://pypi.python.org/pypi/pip) contains detailed installation instructions.Oncepipis installed, you will be able to install the Python clients into your local package repository by running the following commands:To install from download repository:pip install .python setup.py installTo install from pypi:pip install onesaitplatform-client-servicesSamples usageIotBrokerClientAn example of IotBrokerClient is available inIotBrokerClient tutorialFileManagerAn example of FileManager is available inFileManager tutorialMQTTClientAn example of FileManager is available inMqttClient tutorial(deprecated)
Package: onesait-platform-jupyter4
onesait_platform_jupyter4A JupyterLab 4 extension to use with Onesait Platform.RequirementsJupyterLab >= 4.0.0InstallTo install the extension, execute:pipinstallonesait_platform_jupyter4UninstallTo remove the extension, execute:pipuninstallonesait_platform_jupyter4ContributingDevelopment installNote: You will need NodeJS to build the extension package.Thejlpmcommand is JupyterLab's pinned version ofyarnthat is installed with JupyterLab. You may useyarnornpmin lieu ofjlpmbelow.# Clone the repo to your local environment# Change directory to the onesait_platform_jupyter4 directory# Install package in development modepipinstall-e"."# Link your development version of the extension with JupyterLabjupyterlabextensiondevelop.--overwrite# Rebuild extension Typescript source after making changesjlpmbuildYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.# Watch the source directory in one terminal, automatically rebuilding when neededjlpmwatch# Run JupyterLab in another terminaljupyterlabWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).By default, thejlpm buildcommand generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:jupyterlabbuild--minimize=FalseDevelopment uninstallpipuninstallonesait_platform_jupyter4In development mode, you will also need to remove the symlink created byjupyter labextension developcommand. To find its location, you can runjupyter labextension listto figure out where thelabextensionsfolder is located. Then you can remove the symlink namedonesait_platform_jupyter4within that folder.Packaging the extensionSeeRELEASE
Package: onesaitplatform-orange3
Orange3 Onesait PlatformThis is an add-on forOrange3. This add-on allows users to interact with aOnesait Platforminstallation.InstallationTo install the add-on, runpip install .To register this add-on with Orange, but keep the code in the development directory (do not copy it to
Python's site-packages directory), runpip install -e .UsageAfter the installation, the widgets from this add-on are registered with Orange.To run Orange from the terminal, usepython -m Orange.canvasTo run Orange from Anaconda Navigator, launchThe new widgets appears in the toolbox bar under the section OnesaitPlatform.More informationWorkflow examples can be found in ./onesaitplatform/examples.Example_01.ows: This example shows how to get data from the platform as Orange Table.Example_02.ows: This example shows how to train and evaluate two models and upload serialized models to Onesite Platform.For more information, visit the page tutorials inOnesaitPlatform documentation section.Contact informationIf you need support from us, please feel free to contact us atsupport@onesaitplatform.com.And if you want to contribute, send us a pull request.
Package: onesecmail-api
1secmail unofficial APIThis is an unofficial wrapper for 1secmail API.It provides:MailBoxMessage,MailMessage, andMailAttachmentconvience dataclasses.Wrappermethods for:Getting list of 1secmail active domains ->get_domain_listGenerating random emails ->gen_random_emailsFetching mailbox for an email ->fetch_mailboxFetching a message out of an email ->fetch_msgDownloading file attachments from email messages:download_attachmentHow to installpip install onesecmail-apiHow to importImport this library with:importonesecmail_apior just some individual components with:fromonesecmail_apiimport(MailBoxMessage,MailAttachment,MailMessage,get_domain_list,gen_random_emails,fetch_mailbox,fetch_msg,download_attachment,)
Package: oneseismic
oneseismicThis is the root and namespace package for various modules under the oneseismic
umbrella. It includes both libraries and programs.oneseismic.scanUnderstand seismic cube identity and layout.python3 -m oneseismic scanScan a SEG-Y and understand its shape and layout in preparation for onseisemic
storage. The scan program writes a metadata file to be used in the next step of
the ingestion pipeline. In addition to determining the layout of data, a unique
identifier (from sha1) is computed.The output of this program is used as input to the next step in oneseismic
upload.For 3D inline sorted post stack volumes with standard header layout (SEG-Y rev1
or later), no options or configuration should be required. By inline sorting it
is understood that the inline is the last header word to change when reading
headers sequentially.oneseismic scan applies the terms primary-word and secondary-word to what in
inline-sorted cubes are inline and crossline respecitvely. Consider these headers:{ 189: 1, 193: 1 }
{ 189: 1, 193: 2 }
{ 189: 1, 193: 3 }
{ 189: 2, 193: 1 }
{ 189: 2, 193: 2 }
{ 189: 2, 193: 3 }Here 189 is the primary-word and 193 is the secondary-word. If the headers were
flipped like this, then 193 would be the primary-word and 189 the
secondary-word:{ 189: 1, 193: 1 }
{ 189: 2, 193: 1 }
{ 189: 3, 193: 1 }
{ 189: 1, 193: 2 }
{ 189: 2, 193: 2 }
{ 189: 3, 193: 2 }No particular signifiance is given to either orientiation, but oneseismic-scan
requires primary-word to be the last dimension to wrap around.oneseismic.uploadUpload cubes to storage.python3 -m oneseismic uploadUpload a cube and its manifest to storage. The geometry must first be
determined and recorded with oneseismic scan.