Saravanan666/pypi-org huggingface dataset:
Package: aprs-tocall
aprs_tocallInstallpipinstallaprs_tocallUsagefromaprs_tocallimportParsertocalls=Parser(offline=False)# Setting offline to False will use the online# yaml file, while offline=True (default) will# use the distributed versiontocalls.lookup("APWEEA")# returns# {#   'tocall': 'APWEE?',#   'vendor': 'Tom Keffer and Matthew Wall',#   'model': 'WeeWX Weather Software',#   'class': 'software',#   'os': 'Linux/Unix'# }Command line%python3-maprs_tocallAPTTAAtocall=APTT*vendor=Byonicsmodel=TinyTrakclass=tracker
Package: apscheduler-di
Implementation of dependency injection forapschedulerMotivation:apscheduler-disolves the problem sinceapschedulerdoesn't support Dependency Injection
natively, and it's real problem for developers to pass on complicated objects to jobs without
corruptionsFeatures:Supports type hints (PEP 561)Extendapschedulerand provide handy aliases for events(such ason_startup,on_shutdownand
etc)Provide an opportunity to implementDependency InversionSOLID principle"Under the hood"apscheduler-dijust
implementsDecoratorpattern and wraps up the
work of nativeBaseSchedulerusingrodilibQuick example:importosfromtypingimportDictfromapscheduler.jobstores.redisimportRedisJobStorefromapscheduler.schedulers.blockingimportBlockingSchedulerfromapscheduler_diimportContextSchedulerDecorator# pip install redisjob_stores:Dict[str,RedisJobStore]={"default":RedisJobStore(jobs_key="dispatched_trips_jobs",run_times_key="dispatched_trips_running")}classTack:deftack(self):print("Tack!")deftick(tack:Tack,some_argument:int):print(tack)defmain():scheduler=ContextSchedulerDecorator(BlockingScheduler(jobstores=job_stores))scheduler.ctx.add_instance(Tack(),Tack)scheduler.add_executor('processpool')scheduler.add_job(tick,'interval',seconds=3,kwargs={"some_argument":5})print('Press Ctrl+{0}to exit'.format('Break'ifos.name=='nt'else'C'))try:scheduler.start()except(KeyboardInterrupt,SystemExit):passif__name__=='__main__':main()
Package: apsi
PyAPSIPython wrapper for labeled and unlabeled asynchronous private set intersection
(APSI).SetupFormanylinux_2_31_x86_64compatible platforms you can installPyAPSIfromPyPiwithpip install apsiYou can check the system library versions that are required to bemanylinux_2_31_x86_64compatible in theauditwheel policy.In case you feel like contributing a build setup for Windows and OSX compatible wheels
or extend the "From Source" section below, I would be happy to review your pull request.ExampleExample usage of the labeled APSI server and client.
The unlabeled variant can be used analogous to this.fromapsiimportLabeledServer,LabeledClientapsi_params="""{"table_params": {"hash_func_count": 3,"table_size": 512,"max_items_per_bin": 92},"item_params": {"felts_per_item": 8},"query_params": {"ps_low_degree": 0,"query_powers": [1, 3, 4, 5, 8, 14, 20, 26, 32, 38, 41, 42, 43, 45, 46]},"seal_params": {"plain_modulus": 40961,"poly_modulus_degree": 4096,"coeff_modulus_bits": [40, 32, 32]}}"""server=LabeledServer()server.init_db(apsi_params,max_label_length=10)server.add_items([("item","1234567890"),("abc","123"),("other","my label")])client=LabeledClient(apsi_params)oprf_request=client.oprf_request(["item","abc"])oprf_response=server.handle_oprf_request(oprf_request)query=client.build_query(oprf_response)response=server.handle_query(query)result=client.extract_result(response)assertresult=={"item":"1234567890","abc":"123"}To control multi threading and logging inAPSIseeapsi.utils.Building & TestingDockerBefore you start, make sure thatTaskfile,DockerandPoetryare installed.You can then run a full build with tests that will generate a wheel file indist/as
follows:task wheel PYTHON_VERSION=3.10.4Note: Only Python 3.8, 3.9, 3.10, and their patch versions for whichofficial Python Docker imagesexist are supported.From SourcePlease have a look at the files insidedocker/for the requiredvcpkgsetup andapsiAVX2 patch, in case you'd like to build from source in a custom
environment.
Package: apsitemap
Installvia pippip install apsitemapDocumentation:view help:> apsitemap --help
     _ _
 ___(_) |_ ___ _ __ ___   __ _ _ __    author:   gamelife1314
/ __| | __/ _ \ '_ ` _ \ / _` | '_ \   homepage: https://github.com/gamelife1314/sitemap
\__ \ | ||  __/ | | | | | (_| | |_) |  email:    fudenglong1417@gmail.com
|___/_|\__\___|_| |_| |_|\__,_| .__/   version:  0.1
                              |_|

Usage:
    sitemap-tool  <domain> [options]

Options:
    -h, --help     view help.
    -v, --version  view version.

UslSet Options:
    --changefreq <changefreq>   set the update frequency of site. eg: always, hourly, daily, weekly, monthly.
    --lastmod <lastmod>         set the last modified time. eg: 2016-06-30.
    --xml-file <xmlfile>        set the name of xmlfile.[default: sitemap.xml]
    --txt-file <xmlfile>        set the name of xmlfile.[default: sitemap.txt]

Log options:
    --log-level <level>         set log level, eg: DEBUG, INFO, ERROR, WARNING, CRITICAL.[default: DEBUG]example:apsitemap http://blog.fudenglong.site/ --log-level info --changefreq weekly --lastmod 2017-07-01
apsitemap http://blog.fudenglong.site/
Package: apsjournals
APS JournalsA pythonic interface for browsing APSTheapsjournalslibrary is a collection of tools used for exploring American
Physical Society publications via python.Test Result:MotivationAdmittedly, the APS website is well-built. Whyapsjournalsthen?The APS website does not offer an official API. This library offers a set of usable abstractions
to help explore some of the available data.It is not possible to download an entire Issue as a single PDF in the current website.
Future versions ofapsjournalswill offer such behavior.Why not? Interacting with APS publications via Python is fun.Loading Articles for a Journal IssueTheapsjournalslibrary offers several ways to load articles. The easiest of which
is by picking a Journal, then specifying a volume and issue number. The library will then
load the entire issue, including all articles. For example:>>>fromapsjournalsimportPRL>>>PRLJournal('Physical Review Letters')>>>PRL.issue(121,6)Issue('Physical Review Letters',121,6)>>>PRL.issue(121,6).articles[:3][Article('Magnetic Levitation Stabilized by Streaming Fluid Flows'),Article('First Six Dimensional Phase Space Measurement of an Accelerator Beam'),Article('Ubiquitous Spin-Orbit Coupling in a Screw Dislocation with High Spin Coherency')]Download Journal ArticlesIn addition to surveying which articles are in an issue,apsjournalsis also capable of downloading
articles, either individually or as an entire issue. In the latter case, a cover page and table of contents
will also be added to the pdf (including appropriately linked bookmarks).AuthenticationThe first step to downloading articles is authentication. Youmustbe a valid APS member. this library
abides by all APS Terms and Conditions, and consequently relies on you for credentials to access
APS material. Authentication can be performed by using theauthenticatefunction:>>>importapsjournals>>>apsjournals.authenticate('username','password')This will set a session cookie required for pdf downloads.Downloading an ArticleAfter authenticating, it is then possible to download articles from an issue individually or as a whole.
To download an individual article, use thepdfmethod of theArticleinstance.
Specifically:>>>journal=apsjournals.PRL>>>issue=journal.issue(121,6)>>>article=issue.articles[3]>>>article.pdf('path/to/file.pdf')This will download the article as a pdf to the given location.Download an Entire IssueIn order to download all the articles at once, simply use thepdfmethod of theIssueinstance! For
example:>>>issue.pdf('path/to/file.pdf')
Package: apslite-agent
APS Lite Agent[![Build Status](https://travis-ci.org/odin-public/apslite-agent.png?branch=master)](https://travis-ci.org/odin-public/apslite-agent)APS Lite Agent is a daemon that runs on the Odin Automation side and provides a way
to APS Lite Service to communicate with OA installation.Installation`bash[root@aps-lite-agent~]# curl-sSL'https://apslite/agent/cuYBiC_EY+6J1Xvy'| bash-sInstalling required dependencies (EPEL,pip)...OK Installing APS LiteAgent...OK Starting APS LiteAgent....OK `
Package: apss
APSS(for Training): Automatically Distributed Deep Learning Parallelism Strategies Search by Self PlayAPSS 是一种基于神经网络和启发式策略的深度学习模型分布式训练切分(3D parallelism)快速策略搜索算法，它结合启发式策略和训练集群环境初步生成候选策略，然后通过深度管道策略网络（DPSN）为每个候选策略提供详细的pipeline划分，采用自我对弈的对比强化学习（CRLSP）进行离线训练，无需实际数据收集和后续应用中的微调。此仓库我们使用Mindspore进行实现。ContextInstallationUsage and Examples生成PP问题的验证数据集执行训练How It WorksInstallationRequirements:Python >= 3.7Mindspore >= 2.1.1Method 1: With pippip install apssMethod 2: From sourcegit clone https://github.com/Cheny1m/APSS
cd APSS
pip install -e .Usage and Examples一步执行训练python -m apss.training.apss_run --graph_size 8 --num_split 3 --rebuild_datagraph_size,num_split分别代表了问题的层数大小和需要执行pipeline划分的数量，两个命令行参数共同描述了所训练问题的大小，可根据需求动态调整。rebuild_data表示是否在执行训练前，从Data Synthesizer中生成训练数据，默认建议开启。如果需要从.ckpt中接续训练或无需改变之前生成的训练数据直接禁用--rebuild_data参数即可。训练数据可在/data目录下找到。已经完成过执行训练后，.ckpt保存在/output文件夹下，日志保存在/log文件夹下，可以通过tensorboard_logger在浏览器中实时查看训练过程及其数据。How It Works
Package: apssh
apssh- asynchronous parallel sshwhat's included ?This tool leverages the Python asynchronous paradigm and comes witha standaloneapsshcommand for running remote commands on a bunch of hosts
in parallel, as well as theappullandappushcommands to perform parallel
copies, that sysadmins might find useful for their routine jobs,an API with which one can createSshJobobjects
in conjunction with anasynciojob'sSchedulerfororchestratingthem.Please refer tohttp://apssh.readthedocs.io/for a complete documentation bundle.what isnepi-ng?Originally, the idea presented here addresses the needs of experimental
research, where an experiment often boils down to running jobs like preparing a
set of nodes, initializing them, running some bash script, collecting results,
all of them having temporal relationships.To that end, the 2 librariesasynciojobsandapsshcomplement each other
to offer a powerful programing environment that we have brandednepi-ng; its 2 parts are thus:asynciojobsasynciojobsis a microscopic orchestration scheduler for asyncio-based jobs -see this link for
details.
This is the part that handles the temporal relationships.apsshapsshships with a few classes that allow you to write jobs in theasynciojobssense, that will actually run on ssh:SshNode: describe how to reach a node (possible through a gateway)SshJob: to run one or several remote commands; each of these can beRun: that is designed to run a command readily available on the target
nodeRunScript: when you have a local script file to run remotely, so there is
a need to push it over there prior to running itRunString: same idea, but you do not even have a local file, it's just a
python string in memory; useful to embed your shell code inside a python
codePullorPushfor file transfers over SFTPAs the names may suggest:anSshNodeinstance contains the details of the target node (hostname,
username, gateway if relevant, etc...), and it can be thought of as an ssh
connection;SshJob, is suitable to run asasynciojobs'sjobs, i.e. inside a scheduler;anSshJobinstance contains a list of the actual commands to run, that can
be a mix of remote executions and file transfers.examplesYou can see a very simple example of that idea implemented in 2 filesthe python codeandthe related shell scriptplus, a summary of the objects involvedis depicted in this
figureAnother, simpler example, illustrates how to take advantage of the YAML loader, seethemy-first-nepi-ng-scriptfolder in
<https://github.com/fit-r2lab/demosand in particular the 2 versions nameddemo-v1.pyanddemo-v2.pythat
implement the exact same behaviour but that usea pure Python approach (v1)the YAML loader (v2)
Package: apstone
IntroductionBase stone of AI_power, maintain all inference of AI_Power models.WrapperSupply different model infer wrapper, including ONNX/TensorRT/Torch JIT;Support onnx different Execution Providers (EP) , including cpu/gpu/trt/trt16/int8;High level mmlab model (converted) infer wrapper, including MMPose/MMDet;Model Converttorch2jit torch2onnx etc.detectron2 to onnxmodelscope to onnxonnx2simple2trttf2pb2onnxModel Toolstorch model editonnx model shape/speed test (different EP)common scripts from onnxruntimeUsageonnx model speed testfromapstoneimportONNXModelonnx_p='pretrain_models/sr_lib/realesr-general-x4v3-dynamic.onnx'input_dynamic_shape=(1,3,96,72)# None# cpu gpu trt trt16 int8ONNXModel(onnx_p,provider='cpu',debug=True,input_dynamic_shape=input_dynamic_shape).speed_test()InstallpipinstallapstoneEnvsExecution ProvidersNeedscpupip install onnxruntimegpupip install onnxruntime-gputrt/trt16/int8onnxruntime-gpu compiled with tensorrt EPTensorRTpip install tensorrt pycudatorch JITinstallpytorch
Package: apstools
apstoolsVarious Python tools for use with the Bluesky framework at the APS.GH tagGH releasePyPIconda-forgePython version(s)Unit TestsCode CoverageLicensePackage InformationitemdescriptionauthorPete R. Jemianemailjemian@anl.govcopyright2017-2023, UChicago Argonne, LLCdocumentationversions:latest tagged releaseordevelopment (main branch)sourcehttps://github.com/BCDA-APS/apstoolsSee alsohttps://github.com/BCDA-APS/bluesky_traininghttps://BCDA-APS.github.io/apsbsshttps://blueskyproject.io/https://github.com/bluesky/blueskyhttps://github.com/bluesky/ophydhttps://github.com/bluesky/databrokerhttps://github.com/bluesky/hklpy
Package: ap-store
Copyright (c) 2019 Anna PoulakosPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.Description: # ap-storeA simple parameter storage utility## InstallationTo install the current release:` $ pip installap-store`## Usage<details markdown=”1”>
<summary>Get a parameter by key &hellip;</summary>Usage:`bash $ store get KEY `WhereKEYcan be an arbitrary key. Keys cannot contain spaces or special CLI characters.Example:`bash $ store get ap:store:configured true `</details><details markdown=”1”>
<summary>Get all keys &hellip;</summary>Usage / Example:`bash $ store list ['ap:store:configured'] `</details><details markdown=”1”>
<summary>Partial key search &hellip;</summary>Usage:`bash $ store search KEY_FRAGMENT `WhereKEY_FRAGMENTcan be any partial key fragment that matches a key.Example:`bash $ store search ap ['ap:store:configured'] `</details><details markdown=”1”>
<summary>Insert a new parameter &hellip;</summary>Usage:`bash $ store insert KEY VALUE `WhereKEYis an arbitrary key andVALUEis anything else. Keys should not have spaces, but values do not have this requirement.Example:`bash $ store insert ap:status approved :+1: $ store get ap:status approved :+1: `</details><details markdown=”1”>
<summary>Delete a parameter &hellip;</summary>Usage:`bash $ store delete KEY `Example:`bash $ store insert ap:test TESTING $ store get ap:test TESTING $ store delete ap:test $ store get ap:test None `</details>Platform: UNKNOWN
Description-Content-Type: text/markdown
Package: apstrim
apstrimLogger and extractor of time-series data (e.g. EPICS PVs).Data are objects, indexed in time order.Supported Control Infrastructures: EPICS, ADO, LITE. Easy extendable.Wide range of data objects: strings, lists, maps, numpy arrays, custom.Data objects could be inhomogeneous and have arbitrary frequency.Self-describing data format, no schema required.Data objects are binary-serialized using MessagePack.Fast online compression.Fast random-access retrieval of data objects for selected time interval.Simultaneous writing and reading.Typical speed of compressed serialization to a logbook file is 80 MB/s.De-serialization speed is up to 1200 MB/s when the logbook is cached in memory.Basic plotting of the logged data.InstallationDependencies:msgpack, caproto, lz4framed.
These packages will be installed using pip:pip3 install apstrimThe example program for deserialization and plottingapstrim.view,
requires additional package:pyqtgraph.API refrerenceapstrimscanExamplesSerialization# Serialization of one float64 parameter from an EPICS simulated scope IOC:
:python -m apstrim -nEPICS -T59 testAPD:scope1:MeanValue_RBV
Logging finished for 1 sections, 1 parLists, 7.263 KB.
...

# The same with compression:
:python -m apstrim -nEPICS -T59 testAPD:scope1:MeanValue_RBV --compress
Logging finished for 1 sections, 1 parLists, 6.101 KB. Compression ratio:1.19
...

# Serialization 1000-element array and one scalar of floats:
:python -m apstrim -nEPICS -T59 testAPD:scope1:MeanValue_RBV,Waveform_RBV --compress
Logging finished for 1 sections, 2 parLists, 2405.354 KB. Compression ratio:1.0
...
# Note, Compression is poor for floating point arrays with high entropy.

# Serialization of an incrementing integer parameter:
:python -m apstrim -nLITE --compress liteHost:dev1:cycle
Logging finished for 1 sections, 1 parLists, 56.526 KB. Compression ratio:1.25
...
# In this case the normalized compressed volume is 9.3 bytes per entry.
# Each entry consist of an int64 timestamp and an int64 value, which would 
# occupy 16 bytes per entry using standard writing.De-serializationExample of deserialization and plotting of all parameters from several logbooks.python -m apstrim.view -i all -p *.apsPython code snippet to extract items 1,2 and 3 from a logbook
for 20 seconds interval starting on 2021-08-12 at 23:31:31.fromapstrim.scanimportAPScanapscan=APScan('aLogbook.aps')headers=apscan.get_headers()print(f'{headers["Index"]}')extracted=apscan.extract_objects(span=20,items=[1,2,3],startTime='210812_233131')print(f'{extracted[3]}')# print the extracted data for item[3]# returned:{'par':'liteBridge.peakSimulator:rps',# object (PV) name of the item[3]'times':[1628825500.8938403,1628825510.898658],# list of the item[3] timestamps'values':[95.675125,95.55396]}# list of the item[3] values
Package: apsw
APSW stands forAnotherPythonSQLiteWrapper.   APSW
supports CPython 3.8 onwards.AboutAPSW lets you get the most out of theSQLiteembedded relational database engine from Python, and the most out of
Python from SQLite.  APSW glues together the completeSQLite C APIandPython’s C API, staying up to date
with both SQLite and Python.It is recommended to use the builtinsqlite3 moduleif you want SQLite
to appear interchangeable with the other database drivers.Use APSW when you want to use SQLite fully, and have an improved
developer experience.  Thedocumentationhas a section on
the differences between APSW and sqlite3.Help/DocumentationThere is a tour and example code using APSW athttps://rogerbinns.github.io/apsw/example.htmlThe latest documentation is athttps://rogerbinns.github.io/apsw/Mailing lists/contactsPython SQLite discussion group(preferred)Github discussionsYou can also email the author atrogerb@rogerbinns.comReleases and ChangesReleases are made toPyPI(install using pip) andGithubNew release announcements are sent to thePython SQLite discussion
groupand there is
anRSS feed from PyPI.Full detailed list of changesBugsYou can find existing and fixed bugs by clicking onIssuesand using “New Issue”
to report previously unknown issues.LicenseSeeLICENSE- in
essence any OSI approved open source license.
Package: apsw-cledoux
Charles LeDoux Personal Copy of APSW.This is nothing more than the source distribution of apsw with sqlite included.
I needed a working package on pypi. The existing apsw on pypi fails to compile
on my machine.A Python wrapper for the SQLite embedded relational database engine.
In contrast to other wrappers such as pysqlite it focuses on being
a minimal layer over SQLite attempting just to translate the
complete SQLite API into Python.
Package: apt2sbom
Welcome to apt2sbomThis package contains a library and a CLI tool to convert a Ubuntu
software package inventory to a software bill of materials.  You are
in the wrong place if you are not running Ubuntu.The package is under active development.  Don't be surprised if
something doesn't work quite right.  please see CONTRIBUTING.md for
details.BuildingBuilding is easy:Bop the version on setup.cfgpython3 -m build -wcd distpip3 install that fileDo this, of course, on a Ubuntu system.UsageTo use the CLI tool:% apt2sbom (--json|--yaml|--cyclonedx [--pip])Will produce either JSON or YAML forms of an SPDX file, or the JSON form of a CycloneDX file . There is no default.  Pick one.To include python packages, add --pip.There is also a werkzeug interface so that an SBOM file can be
delivered via HTTP.  To use, create a simple wsgi file as follows:from apt2sbom.wsbom import app as application  
application = create_app(\_name\_)and call that file from your httpd. An apache example follows:WSGIScriptAlias /.well-known/sbom /usr/lib/cgi-bin/sbom.wsgi
WSGIPassAuthorization OnThere is a configuration file: /etc/sbom.confIt is in the form of a JSON object.  It currently has the following
parameters and defaults as follows:{
   "do_auth": true,  # otherwise don't auth
   "passwd_file": "/etc/sbom.users",  # where to find the passwds
   "include_pip": false, # pip results take a long time
   "pregen_file": null # only open and read this file; otherwise gen.
   "sbom_type": null # the type of sbom.  must be set if using pre_gen file.
}Note- don't put comments in.  (ToDo)When this is done, a very simple password file is expected by default
in /etc/sbom.users:{
   "user" : "password",
   "otheruser" : "otherpassword",
    ...
}The passwords aren't hashed.  This is clearly something that has to
be addressed in the future.The type of SBOM returned depends on the Accepts: header sent.
Package: apt-archive-tools
用于修改apt软件仓库的工具集安装：推荐:python setup.py sdist
sudo pip install dist/* 或 pip install --user dist/*不推荐:sudo python setup.py install --record install.log卸载：如果是pip安装：pip uninstall apt-archive-tools如果是setup.py安装：cat install.log | xargs sudo rm -rf临时使用：直接运行 archive-man.py查看命令行帮助archive-man --help依赖：python-2.7apt-utilsrepreprognupg普通软件源操作：有一堆deb包，想要发布成一个apt源创建源文件夹a（名字可以随意，但不要用中文），在里面创建一个pool的子文件夹mkdir -p a/pool把deb包放到pool目录里cp /path-to-my-package/*.deb a/pool/执行发布命令archive-man publish a -s stable -a arm64-s 指定版本代号-a 可以指定多次，如果想要用同一个目录提供多个体系结构的软件源发布完后会提示source.list的写法。复制一个远程软件源可以复制某个软件源的一部分（指定需要的系列，指定需要的体系结构，指定需要的component）archive-man copy http://archive.ubuntu.com/ubuntu /local-path -s xenial -a amd64 -a i386 -c main -c universe-s 指定版本代号-a 指定体系结构，可以指定多次-c 指定软件源component，可以指定多次All Functionskeyimport PGP key for signingsignsign Release file with imported PGP keycopycopy archive (only one suite) to a local directorylocal-copyjust like cp, but files in pool/ will be a hardlink to sourcepublishpublish a customized archive form a package poolmergemerge 2 or more suites into a new suite in the same archivestripremove unnecessary files from pool/ if local archivediffcompare the package list of two distscheckcheck missing or unnecessary  debian packages in archivecheckdepcheck dependencies of packages in an archiverenamechange filename of package in the archive indexes