Saravanan666/pypi-org huggingface dataset:
Package: asap
Running examples(The examples are scripts inbin/but you should install ASAP usingpip3orsetup.pyto run it, see below.)asap-example-onoffswitchThis is the most simple example of a switch.asap-tetrisThis example is the game Tetris, including a player
name, increasing difficulty with increasing score,
and a high score list.asap-aplagentThis example is an interactive action plan inspector
that works with domain and action description files
from APLAgent that can be obtained fromhttp://mbal.tk/APLAgentMgr/and is distributed
under GPL license.InstallationIf you do not have it: installpip3: for example under Ubuntu via$ sudoapt-getinstallpython3-pipInstall ASAP with pip3, see PyPi repository athttps://pypi.python.org/pypi/asap$ pip3 install asap--userSetup Python to use the “Userinstall” environment that allows you to install Python programs without overwriting system packages. This is achieved by adding the following to your.profileor.bashrcfile:exportPYTHONUSERBASE=~/.local/exportPATH=$PATH:~/.local/binRun ASAP the first time. This will help to download and build pyclingo if you do not have pyclingo for Python 3 already usable viaimport clingo:$ asapThe first run of asap might ask you to enter the sudo password
to install several packages.
(If you do not want to enter your sudo password: abort, install the packages manually, and later runasapagain.)Ubuntu 16.04 is testedDebian 8.6 (jessie) is testedUbuntu 14.04 can not work without manual installation of cmake 3.1 or higher (for buildling clingo)DevelopmentInstall the package in development mode in the “Userinstall” environment.$ python3 setup.py develop--userRunningasapcat <program> | asap <arguments>CitationSchüller, Peter, and Antonius Weinzierl.
“Answer Set Application Programming: a Case Study on Tetris.”
ICLP (Technical Communications). 2015.http://ceur-ws.org/Vol-1433/tc_17.pdf
Package: asapp
asappOpen websites in Chromium's app mode.MotivationI use several GSuite apps such as Google Sheets and Google Docs, but there are not suitible
linux clients available for these apps. Running them inappmode using the--appCLI option
is a good substitute for this.InstallationPyPipipinstallasappGit Clonegitclonehttps://github.com/BlakeASmith/as_app.git
pipinstall.UsageOpen WebsitesLaunch a website in it's own window, without any borders or browser options.asappopenhttps://duckduckgo.comCreate a Desktop Entryasappshortcut--nameDuckDuckGohttps://duckduckgo.comThis will add a.desktopfile to the~/.local/share/applications/folder, causingDuckDuckGoto appear in your app launcher of choice!
Package: asari
asariAsari is a Japanese sentiment analyzer implemented in Python.UsageBehold, the power of asari:fromasari.apiimportSonarsonar=Sonar()sonar.ping(text="広告多すぎる♡"){"text":"広告多すぎる♡","top_class":"negative","classes":[{"class_name":"positive","confidence":0.09130180181262026},{"class_name":"negative","confidence":0.9086981981873797}]}Asari allows you to classify text into positive/negative class, without the need for training. You have only to fed text into asari.InstallationTo install asari, simply usepipwith Python 3.8+:pipinstallasari
Package: as-a-service
# as_a_serviceA simple package that transforms a batch function {inputs->results} into a service that- groups inputs into batches - you specify max batch size and time waiting- processes them - and returns results back to whoever was asking### Usage:__[notebook version](https://github.com/justheuristic/as_a_service/blob/master/example.ipynb)__Here's how it feels```python@as_batched_service(batch_size=3, max_delay=0.1)def square(batch_xs):print("processing...", batch_xs)return [x_i ** 2 for x_i in batch_xs]# submit many queriesfutures = square.submit_many(range(10))print([f.result() for f in futures])```This will print```processing... [0, 1, 2]processing... [3, 4, 5]processing... [6, 7, 8]processing... [9][0, 1, 4, 9, 16, 25, 36, 49, 64, 81]```You can also use it as a drop-in replacement for a function that processes one input at a time* `square(2.0)` will return 4.0 as if a normal function* Under the hood, it submits a request and waits for it to finishThis package contains three objects- BatchedService(batch_process_func, batch_size, max_delay) - main object- @as_batched_service(batch_size, max_delay) - same thing as a decorator- @as_service(max_delay) - decorator for a function without batches (single input/output)Use help(BatchedService) and "Why should I care?" for more details.### Install:*  ```pip install as_a_service```*  No dependencies apart from standard libraries*  Works with both python2 and python3 (pip3 install)### Why should I care?This primitive is useful for a number of scenarios like:1) You are building a web-based demo around your neural network. You want your network to processa stream of user queries, but doing so one query at a time is slow. Batch-parallel processing is way better.```python@as_batched_service(batch_size=32, max_delay=1.0)def service_predict(input_images_list):predictions_list = my_network_predict_batch(input_images_list)return predictions_list@my_web_framework.run_as_a_thread_for_every_querydef handle_user_query(query):input_image = get_image(query)return service_predict(input_image)```2) You are experimenting with a reinforcement learning agent. The agent itself is a neural networkthat predicts actions. You want to play 100 parallel game sessions to train on.Playing one session at a time is slow. If only we could run multiple sessions on one GPU```pythonmy_network = make_keras_network_on_gpu()service = BatchedService(my_network.predict, batch_size=32, max_delay=1.0)threads = [GamePlayingThread(predict_action=lambda x: service(x)) for i in range(100)]for thread in threads:thread.start()for thread in threads:thread.join()service.stop()```And many other scenarios where you want to use a single resource(GPU / device /DB) concurrently and utilize batch-parallelism
Package: asa-tools
简介asa自用的工具包，功能包括bira 下载b站视频需要配置conf.ini，格式为[spiderbi]SESSDATA="XXXX"需要环境变量中配置ASA_HOMEcf    copyFolder 复制所有源代码文件到asahome的文件夹下cp4   mp4拷贝到asa_home的环境变量的目录中，并重命名为合法字符ctt   mp4目录下文件生成要转换的txt文件od    调用out_dutys 转换值班为jsra    removeAnnotate 去掉注解ttm4  合并mp4视频，转为h264编码mp4或海信电视可播放的mp4 equipment ： --e
Package: asb
Android Screen BufferPython package for streaming Android device's screen frames. This utility can be used to capture android screen frames in real time and use with 3rd party libs like opencv. Might be usefull in case you'd like to make processing or use screen frames in your python code (e.g to create reinforcement learning setups for android games).How to install:First install and runminicap(thats really easy).Thenpip install asbHow to use:from asb import AndroidScreenBuffer

buff = AndroidScreenBuffer()
buff.run()

img = buff.get_last_frame()

if img is not None:
    # Use image as you would like
    # e.g cv2.imshow('capture', img)
Package: asb-cli-explorer
Command line Azure ServiceBus ExplorerExplore Azure Service Bus on command line. You can send, receive, peek message from topic/subscriptions.InstallationRequires python >=3.7.4pipinstallasb-cli-explorerQuick startSend a messge.exportSB_CONN_STR="Endpoint=sb://<full conn string having sender or manage role>"asb-toursend--conn-str=${SB_CONN_STR}--topic=test-topic--propskey1=va1,key2=value2'{"hello":"world"}'# using json fileasb-toursend--conn-str=${SB_CONN_STR}--topic=test-topic--propskey1=va1,key2=value2--data-file/path/to/payload_filePeek/stream messge from a subscription asynchronously forever. Press 'Ctrl+C' to stop.exportSB_CONN_STR="Endpoint=sb://<full conn string having receiver or manage role>"asb-tourpeek--topic=test-topic--subscription=log--show-user-props--show-system-props# optionaly pipe it to `jq` to get pretty printing and futher transformationsasb-tourpeek--topic=test-topic--subscription=log--show-user-props--show-system-props|jqList messages from subscription's dead letter queue (dlq).exportSB_CONN_STR="Endpoint=sb://<full conn string having receiver or manage role>"asb-tourdlqpeek--topic=test-topic--subscription=log--count=10Move/Copy dlq messages to topicsexportSB_CONN_STR="Endpoint=sb://<full conn string having receiver or manage role>"asb-tourdlqmove--topic=test-topic--subscription=log<message-ids>
asb-tourdlqcopy--topic=test-topic--subscription=log<message-ids>
asb-tourdlqpurge--topic=test-topic--subscription=logExplore Topics, Subscriptions: Messages & DLQYou can also explore messages using Terminal User Interface [TUI].exportSB_CONN_STR="Endpoint=sb://<full conn string having manage role>"asb-tourexplore
Package: asbestos-snow
asbestosAn easy way to mock Snowflake connections in Python!What is this?asbestosis a library for Python 3.9+ to allow easy mocking of Snowflake calls during local development or testing to save on costs and time. The docs have more information, but here's a quick example:fromasbestosimportasbestos_cursor,configasasbestos_configdefsnowflake_cursor()->SnowflakeCursor|AsbestosCursor:# Use a flag to decide whether it returns the test cursor# or the real thingifsettings.ENABLE_ASBESTOS:returnasbestos_cursor()returnsnowflake_connection().cursor(DictCursor)asbestos_config.register(query="your sql goes%s",data=("here",),response={"It's a":"response!"})withsnowflake_cursor()ascursor:cursor.execute("your sql goes%s",('here',))assertcursor.fetchall()=={"It's a":"response!"}asbestosis not a 1:1 mocking of the full Snowflake API, but includes synchronous and async query mocking that handle most use cases. Check outsome fun things you can do with it here!Installation:poetryaddasbestos-snowThe installation name is slightly different from the usage name due to someone claiming the name with no releases on PyPI; with luck, we will be able to finish the name requisition process to be able to useasbestossoon. If you're interested, you cansee how well that's going here.DocsCheck out the documentation here!To work on the docs locally, ensure that yourpython3version is up-to-date (pyenvis a great way of managing this) and runmake docs. This will create a dedicated documentation environment and serve the docs locally for testing. To remove the environment, runmake docs_clean.Developmentasbestosusespre-committo help us keep the repo clean. To get started, make sureyou havepoetryinstalledand follow these steps:clone the respository:git clone git@github.com:SpotOnInc/asbestos.git(preferred)ORgit clone https://github.com/SpotOnInc/asbestospoetry installpoetry shellpre-commit installAfter that, you're ready to go!
Package: asbool
asboolis simple converter fromstrtobool.INSTALLuse pip to installasbool.pip install asboolUSAGEYou can useasbool.asboolfunction simply.>>> from asbool import asbool
>>> asbool('TRUE')
TrueOr useAsBoolConverterinstance with customized values.>>> from asbool.converter import AsBoolConverter
>>> converter = AsBoolConverter(['t'], ['f'])
>>> converter('t')
True
>>> converter('f')
False
>>> converter('true')
Traceback (most recent call last):
    ...
raise ValueError(ss)
ValueError: true
Package: asc
Acoustic Scene ClassificationDevelopmentLast releasePyPI statusAcoustic Scene Auditory (ASC) using Convolutional Neural Network (CNN) is a
project being part of the Machine Learning Nanodegreen program given by
Udacity. For a description of the proposal, you can refer to itsweb
version.DatasetThe dataset can be downloaded on theZenodoserver.FeaturesTODOCreditsProject created byMatthieu Berjonand based on the work of Simone Battaglino,
Ludovick Lepauloux and Nicholas Evans.This package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.3.1 (2017-08-22)AddedIssue #8: config file featureIssue #11: Samplerate setting up through CLIIssue #10: Spectrogram calculationIssue #24: Add a ‘config’ subcommand to the CLIIssue #25: Read a value from the config fileIssue #21: Script to verify the samplerate sanity of the databaseIssue #30: Function to transform milliseconds to samplesChangedIssue #23: Update of the documentation for the installation processIssue #26: Update of the CLI subcommand ‘getdata’Issue #32: Exception handling in config readingDeprecatedNothing.RemovedNothing.FixedIssue #9: trailing slash on data pathIssue #13: Update of the config file parametersIssue #15: Crash when setting up the samplerateIssue #22: Update of the dependency listIssue #25: Update of the config fileUpdate of docstringsUpdate of the documentationSecurityUpdate of the Coveralls library from 1.1 to 1.2.00.2.3 (2017-08-07)AddedTravis config filepytest suiteCLI testsissue #5: Package coverage for the development setupissue #6: adding of aclear_zip()to clean the archive filesChangedPython 3.3 testing removedDeprecatedNothingRemovedNothingFixedIssue #4: invalid functools dependencyIssue #7: update of docstringunzip_data()SecurityNothing0.2.2 (2017-07-31)AddednothingChangedUpdated of the ChangeLog (HISTORY.rst)DeprecatednothingRemovednothingFixednothingSecuritynothing0.2.1 (2017-07-31)AddednothingChangednothingDeprecatednothingRemovednothingFixedunzip_data() url list issuedownload of temporary files in the right directorySecuritynothing0.2.0 (2017-07-31)AddedAdding of a documentation (with docstrings)CLI command to download and unzip data automaticallycreation of a python packageconfiguration of Toxdownload() method in data classChangedUse of RST instead of markdown for all the documentationdevelopment packages are now in requirements_dev.txtDeprecatednothingRemovednothingFixedsource files satisfy PEP8bug fix on getdata cliSecurityUpdate of all packages to their latest versions0.1.0 (2017-07-25)First release as a package.
Package: asc2mb
aSc to ManageBacGetting startedRequires Python 3.6 or above. For Windows, install Python via the Microsoft Store. For Mac, install Python atpython.org. Installing Python also installs a package manager (calledpip) that can install the commandasc2mbinto your command line environment.After installing Python, open the terminal or command line or PowerShell, and peform the following:pipinstallasc2mbIf for some reason thepipcommand doesn't work, you can manually install it by followingthe relevant instructionsfor your system.UpgradeShould you need to update to the latest version, you can do:pip install --upgrade asc2mbUseAfterpip installworked, it is now installed on your path, and the commandasc2mbshould be available:asc2mb ~/path/to/xml.xml ~/path/to/save/timetable.csv ~/path/to/save/classes.csvIt takes only a second to run. It reports how many records it processed.AlgorithmThis script uses input from more than one international school to generate the expected output. The key to success is using aSc Divisions to match theuniq_ids found in ManageBac classes.HelpFor built-in help, and list of options and their functionality:asc2mb --helpMiscellaneousThe command takes three required arguments, and there are additional options as well. The three required arguments tell the program where the xml file is located, and where to save the two csv files.The options depend on your school's needs. For example, the class id is how ManageBac knows which class you are referring to, so that program helps you derive the class ID based on information contains in the xml file. It's up to you to ensure there are classes that have those IDs in ManageBac, but the program does produce a csv so that they can be uploaded in bulk.By default, class id uses the pattern{class_.short}_{division.name}, which means "the short name of the class" plus an underscore, plus the name of the division." At the time of publication, having a different pattern is only possible by contacting the author (or, if you're a keen developer, add a pull request).If you run the program without any options, it'll prompt you to enter them.
Package: ascacou
AscacouA subset of the rust ascacou game engine available for Python usage.UsagefromascacouimportBoardfromrandomimportsampleboard=Board("5/5/5/5/5 01234567")# Empty board with first white tiles.whilenotboard.is_terminal():moves=board.possible_moves()board=board.next(sample(moves,1)[0])print(board)s# Score is the difference between tiles made by the current player# and tiles made by its opponent.print(board.score())Development$python3-mvenvenv
$sourceenv/bin/activate
$# Hack some files$maturindevelop
$python3
>importascacou
># Test stuff$deactivate
Package: ascall
ascallascall用于自动识别同步或异步的可调用对象，
然后进行转换并执行异步调用返回结果。ascall可作为函数运行，也可作为装饰器。装饰器用法importasynciofromascallimportascall@ascall()defsync_func():print("sync func run.")asyncio.run(sync_func())函数用法importasynciofromascallimportascalldefsync_func(msg:str):print("sync func run.",msg)asyncdefmain():print("async func run.")awaitascall(sync_func,"some msg")asyncio.run(main())
Package: ascat
Read and visualize data from the Advanced Scatterometer (ASCAT) on-board the series of Metop satellites.CitationIf you use the software in a publication then please cite it using the Zenodo DOI.
Be aware that this badge links to the latest package version.Please select your specific version athttps://doi.org/10.5281/zenodo.4610836to get the DOI of that version.
You should normally always use the DOI for the specific version of your record in citations.
This is to ensure that other researchers can access the exact research artefact you used for reproducibility.You can find additional information regarding DOI versioning athttp://help.zenodo.org/#versioningInstallationASCAT data are distributed in BUFR, NetCDF, EPS Native and GRIB format. Unfortunately neither BUFR nor GRIB readers work on Windows so if you need these formats then Linux or OS X are your only options.The following script will download and install all the needed packages.Linux:conda env create -f environment.ymlWindows:conda env create -f environment_win.ymlSupported datasetsThis gives a short overview over the supported products. Please see the documentation for detailed examples of how to work with a product.Read ASCAT data from different sources into a common format supported by pytesmo.H SAFSurface Soil Moisture (SSM) and Root Zone Soil Moisture (RZSM) productsCopernicus Global Land Service (CGLS)CGLS Soil Water Index (SWI) productsEUMETSATASCAT Soil Moisture at 12.5 km Swath Grid - MetopASCAT Soil Moisture at 25 km Swath Grid - MetopASCAT GDS Level 1 Sigma0 resampled at 12.5 km Swath Grid - MetopASCAT GDS Level 1 Sigma0 resampled at 25 km Swath Grid - MetopContributeWe are happy if you want to contribute. Please raise an issue explaining what is missing or if you find a bug. We will also gladly accept pull requests for new features or bug fixes.GuidelinesIf you want to contribute please follow these steps:Fork the ascat repository to your accountClone the repository, make sure you usegit clone--recursiveto also get the test data repository.Make a new feature branch from the ascat master branchAdd your featurePlease include tests for your contributions in one of the test directoriesSubmit a pull requestNoteThis project has been set up using PyScaffold 4.5. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: asce7
ASCE 7This project is not intended to fully replicate the entire ASCE 7 buildling code, only the parts I find useful.Proposed, example API (not yet implemented):# Example calculation modulefromasce7.v2016importRisk,importance_factorimportasce7.v2016.chapter7asch7fromasce7.v2016.chapter2importASD,Strengthrisk=Risk["II"]# orrisk=Risk(2)# orrisk=Risk.II# Snow importance factorI_s=ch7.I_s(risk)# Ground snow loadp_g=ch7.p_g(20)# Surface roughnessrgh=ch7.roughness("B")# orrgh=ch7.roughness.B# Roof exposureexp=ch7.roof_exposure("Fully")# orexp=ch7.roof_exposure.fully# Snow exposure factorC_e=ch7.C_e(rgh,exp)# Snow thermal conditionthrml=ch7.thermal_condition("unheated open air")# orthrml=ch7.thermal_condition.unheated_open_air# Snow thermal factorC_t=ch7.C_t(thrml)# Flat roof snow loadp_f=ch7.p_f(C_e,C_t,I_s,p_g)# Some load combinations including snowstrn2=Strength[2](S=p_f)strn3=Strength[3](S=p_f)asd3=Strength[3](S=p_f)asd6=Strength[6](S=p_f)
Package: ascend-deployer
1简介离线安装工具提供系统组件、python第三方依赖自动下载以及一键式安装的功能，并支持驱动、固件、CANN软件包以及MindX DL和MindX Edge MEF Center的安装。2快速指南本工具主要支持开局场景（环境仅安装了OS），如果遇到问题，请参考ascend-deployer用户指南。2.1安装内容工具支持安装的内容参考下图，其中红色部分是昇腾设备上必须安装的，橙色部分和绿色部分是可选安装的，如果需要直接运行AI框架或Toolbox，橙色部分也是必须安装的。2.2使用样例以下以Ubuntu_18.04_x86_64系统，服务器上插Atlas 300I Pro推理卡为例快速展示工具的使用方式。以root用户登录待安装设备。执行pip3 installascend-deployer==<version>安装ascend-deployer工具。<version>为ascend-deployer工具的版本号，
建议参考官网下载最新发布版本的工具包。如果提示pip3命令不存在，请用户自行安装。执行下载命令。ascend-download --os-list=Ubuntu_18.04_x86_64 --download=CANN==6.3.RC1,MindSpore==2.0.0rc1执行以上命令后，会自动下载好OS所需依赖，CANN软件包和配套的驱动和固件包，以及docker软件等，并存放到$HOME/ascend-deployer/resources目录下。创建驱动的运行用户HwHiAiUser。groupadd -g 1000 HwHiAiUser
useradd -g HwHiAiUser -u 1000 -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash创建完用户后，执行passwd HwHiAiUser命令设置用户密码。安装驱动和固件时，如果不是归一包（包名以Ascend-hdk开头），需在inventory_file中提前配置cus_npu_info变量。[ascend]
localhost ansible_connection='local'执行以下安装命令，自动安装所有能找到的包（MindX DL和MEF Center除外，该两者请参考ascend-deployer用户指南）。ascend-deployer --install-scene=auto安装后配置。
使用python和CANN前，需要根据实际情况配置环境变量，以下内容以配置python和nnae的环境变量为例。source /usr/local/ascendrc                # 配置python环境变量
source /usr/local/Ascend/nnae/set_env.sh  # 配置nnae的环境变量详细指南请参考ascend-deployer用户指南
Package: ascender
AscenderFramework CLICLI for interacting with coreframeworkfunctionality.
This CLI allows users to create new AscenderFramework projects, as well as manage existing projects running their CLI.Table of ContentsInstallationUsageContributingLicenseInstallationTo install the CLI, run the following command:pipinstallascenderUsageTo create new project, just execute the following command:ascenderprojectsnew--name<project_name>To execute project commands, just execute the following command:ascenderrun<command>ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseGPLv3
Package: ascenderai
AscenderAI SDK⚡ Commuting with AscenderAI cluster in python with 1 lib ⚡Installation# For windowspipinstallascenderai# For linux or mac ospip3installascenderaiUsageimportasynciofromascenderaiimportAscenderAIclient=AscenderAI()asyncdefmain():response=awaitclient.completions.create(prompt="Explain me about LLMs",max_tokens=5)print(response.choices[0].text)asyncio.run(main())DocumentationAscender TeamAPI DocumentationAscenderAI API