Saravanan666/pypi-org huggingface dataset:
Package: pyarxiv
See source on GitHub:https://github.com/culshoefer/pyarxivpyarxivpyarxiv is a wrapper for the API ofCornell University’s famous
repositoryfor scientific papers.Supports Python 2.7, 3.3-3.6+InstallationpipinstallpyarxivFeaturesQuery the arXiv API (atom feed) in your codeUse enums for arXiv categoriesDownload papers in your code as PDF TODO - Do the above in the
commandlineUsageCLIpyarxiv-clidownload-hpyarxiv-cliquery-h# will download a couple of papers with given ids to folder /home/user, name them according to their titles,
# append their arxiv ids, and do not give progress feedback when each paper is downloadedpyarxiv-clidownload1703.000011703.00002v1...--target-folder=/home/user--use-title-for-filename--append-id--silent# Queries for papers with "Lorem" in them, maximally gets 5 papers (default 100), authors Einstein and Zweistein
# Other potential arguments are --abstract, --journalref and manualmode with --querystringpyarxiv-cliquery--title="Lorem"--max-results=5--authors="A Einstein, B Zweistein"You can also chain commands:pyarxiv-clidownload$(pyarxiv-cliquery--title="WaveNet")--use-title-for-filename--append-idPythonfrompyarxivimportquery,download_entriesfrompyarxiv.arxiv_categoriesimportArxivCategory,arxiv_category_map#query(max_results=100, ids=[], categories=[],#                title='', authors='', abstract='', journal_ref='',#                querystring='')entries=query(title='WaveNet')titles=map(lambdax:x['title'],entries)print(list(titles))#download_entries(entries_or_ids_or_uris=[], target_folder='.',#                     use_title_for_filename=False, append_id=False,#                     progress_callback=(lambda x, y: id))download_entries(entries)entries_with_category=query([ArxivCategory.cs_AI])print(arxiv_category_map(ArxivCategory.cs_AI))
Package: pyas
pyasRun machine code, assembly and webassembly directly in Python.Have you ever realized you can't remember how to add numbers in Python but youdoremember how to do it in assembly?If the answer is yes this is the package for you, usingpyasyou will be able to run machine code, assembly and webassembly directly from within Python!- currently this only supports LinuxInstallationFrom PyPIpip3installpyasFrom GitHubpip3installgit+https://github.com/donno2048/pyasUsage / ExampleMachine codeComments are noted with;,#and//frompyasimportfunctionadd_one=function('8b c7'# mov eax, edi'83 c0 01'# add eax, 1'c3'# ret)return_same=function('''8b c7  # mov eax, edic3  // ret''')print(add_one(10),"=",return_same(10),"+ 1")# output: 11 = 10 + 1add_numbers=lambdai,val:function('''8b c7  ; mov eax, edi83 c0 %.2x # add eax, ic3  // ret'''%i,val# every value after the first argument will be passed directly to the function if supplied)print(add_numbers(4,10),"=","10 + 4")# output: 14 = 10 + 4Assemblyfrompyasimportfunctionadd_one=function('''mov eax, ediadd eax, 1ret''',raw=False)return_same=function('''mov eax, ediret''',raw=False)print(add_one(10),"=",return_same(10),"+ 1")# output: 11 = 10 + 1add_numbers=lambdai,val:function('''mov eax, ediadd eax, %dret'''%i,val,# every value after the first argument will be passed directly to the function if suppliedraw=False)print(add_numbers(4,10),"=","10 + 4")# output: 14 = 10 + 4WebAssemblypyas will automatically recognize running in a web browser and will run Webassembly, but you'll have to specify afunc_name.frompyasimportfunctionadd_one=function('\0asm\1\0\0\0\1\6\1`\1''\x7f\1\x7f\3\2\1\0\7''\x0b\1\7add_one\0\0\n\t''\1\7\0\x20\0A\x01j\x0b',func_name='add_one')print(f"{add_one(10)}={add_one(9)}+ 1")Viewonline
Package: pyAS2
pyAS2is an AS2 server/client written in python and built on the django framework.
The application supports AS2 version 1.2 as defined in theRFC 4130. Our goal is to provide a native
python library for implementing the AS2 protocol. It supports Python 2.6-2.7.pyAS2includes a set of django-admin commands that can be used to start the server, send files as
a client, send asynchronous MDNs and so on. It also has a web based front end interface for
configuring partners and organizations, monitoring message transfers and also initiating new transfers.FeaturesTechnicalAsyncronous and syncronous MDNPartner and Organization managementDigital signaturesMessage encryptionSecure transport (SSL)Support for SSL client authenticationSystem task to auto clear old log entriesData compression (AS2 1.1)Multinational support: Uses Django’s internationalization featureIntegrationEasy integration to existing systems, using a partner based file system interfaceDaemon Process picks up data from directories when it becomes availableMessage post processing (scripting on receipt)MonitoringWeb interface for transaction monitoringEmail event notificationThe following encryption algorithms are supported:Triple DESDESRC2-40AES-128AES-192AES-256The following hash algorithms are supported:SHA-1DocumentationYou can find more information in thedocumentation.DiscussionIf you run into bugs, you can file them in ourissue tracker.ContributeCheck for open issues or open a fresh issue to start a discussion around a feature idea or a bug.Forkthe repositoryon GitHub to start making your changes to themasterbranch (or branch off of it).Create your feature branch:git checkout -b my-new-featureCommit your changes:git commit -am ‘Add some feature’Push to the branch:git push origin my-new-featureSend a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself toAUTHORS.Running TestsTo runpyAS2'stest suite:django-admin.pytest pyas2--settings=pyas2.test_settings--pythonpath=.LicenseGNU GENERAL PUBLIC LICENSEVersion 2, June 1991Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Package: pyasana
Python Asana============.. image:: https://travis-ci.org/caseydunham/python-asana.png?branch=master:target: https://travis-ci.org/caseydunham/python-asanaA python wrapper around the Asana (asana.com) APIIntroduction------------This library provides a pure python interface for the Asana restful API.Currently not all operations are supported. All of the operations that are currently supported are read only.With this initial version, the following functionality is working:* Retrieving workspaces* Retrieving projects* Retrieving users* Retrieving tasks* Retrieving storiesDocumentation-------------Forthcoming.Using-----The library provides a python wrapper around the Asana API and data model.*Model:*The various API methods in the pyasana.API class return instances of the followingclasses.. code-block:: pyconpyasana.Userpyasana.Workspacepyasana.Projectpyasana.Taskpyasana.Story*API:*All interaction with the Asana API is done through the pyasana.Api class.All Asana API calls require an Integrator Key.To create an instance of the pyasana.Api class:>>> import pyasana>>> api = pyasana.Api("YOUR ASANA INTEGERATOR KEY")To retrieve a list of all the workspaces:>>> workspaces = api.get_workspaces()>>> print ["%s:%s" % (w.id, w.name) for w in workspaces][u'193074061952:Shiny New Workspace', u'652052755897:Sandbox']To retrieve a list of all projects in a workspace:>>> workspace = 193074061952>>> projects = api.get_projects(workspace)>>> print ["%s:%s" % (p.id, p.name) for p in projects][u'983421735560:Asana Python Client', u'992461725871:Test Project']To retrieve a list of all tasks in a project:>>> project = 983421735560>>> tasks = api.get_tasks(project=project)>>> print ["%s:%s % (t.id, t.name) for t in tasks][u'953421755459:fix task detail issue', u'953341245215:documentation']More examples forthcoming..... _`the repository`: http://github.com/caseydunham/python-asana.. _AUTHORS: https://github.com/caseydunham/python-asana/blob/master/AUTHORS.rst.. :changelog:History-------0.0.3 (2013-02-10)++++++++++++++++++* package release* create projects0.0.2 (2012-12-03)++++++++++++++++++* added assignee to task object* throttle support0.0.1 (2012-06-12)++++++++++++++++++* inception
Package: pyasar
Library for working with Electron’s ASAR archive files.
Electron (formely known as Atom Shell) uses it’s own archive format to
compress files into a single file. The format is somewhat similar to TAR
files. There’s a Node.JS package for working with ASAR files:https://github.com/electron/asarThe URL above also contains the format documentation. Code was written for Python >3.4.InstallationPyAsar is on PyPi (Python Package Index) and can be installed through Pip:pip install pyasarYou can view more information about the package on the PyPi package:https://pypi.python.org/pypiExample usagefrom asar import AsarArchive

with AsarArchive.open('myasarfile.asar') as archive:
    archive.extract('/home/mydir')At the moment that is all what it can do ;)Disclaimer / LicenseThis is no way associated with Github, Electron or Atom. This is free,
and open-source (free as in beer) for fun and profit. Licensed under theDo What the Fuck You want Public License:http://www.wtfpl.net/
Package: pyasciiartist
project-templateA lightweight module for colorful ascii art generation from images and videos.first of allspecifics:writen and owned by: Shahaf Frank-Shapirall the rights are saved for: Shahaf Frank-Shapirprogramming languages: python 3.9.12 (100%)before we startdescription:visit the docs to learn more about this project and how to develop with it.dependencies:opening:
For this is a complex program, which uses a lot of modules, there are required dependencies needed
in order to run the program. keep in mined the program was writen in python 3.9, so any python version lower
than 3.9 might not work properly.install app dependencies by writing the "-r" option to install the requirements
writen in a file, and write the following line in the project directory:pip install -r requirements.txtrun a testrun from windows command line (inside the project directory)run with python by writing to the command line in the project directory:python test.py
Package: pyASCIIgenerator
pyASCIIgeneratorA simple image-to-ASCII converter based on a video byKite.UsageimportpyASCIIgeneratorpyASCIIgenerator.asciify('path\\\ to\\\ file')REMEMBER TO USE DOUBLE BACKSLASHESalso try:importpyASCIIgeneratorpyASCIIgenerator.help()this will print out the usage exampleRequirementsthis module relies on thePIL.Imagefrom the library, Pillow.CreditsMade byHYKANTUS
Package: pyascvd
PyASCVD :anatomical_heart:2013 ASCVD (Atherosclerotic and Cardiovascular Disease) risk estimator plus calcualtorIntroductionThe PyASCVD package implements theAmerican College of Cardiology's Risk Estimator Plus Equationin python. It's a mixed Rust and Python
module, leveraging the speed of Rust for equation implementation and the flexibility of Python for ease of use.InstallationRequirements:Python 3.7 to 3.12 on a Silicon Mac / Linux system (more compatibility coming soon)To install the package, pip install using:pipinstallpypascvdTL;DRimportpyascvdpyascvd.ascvd(age=40,sex="male",race="white",systolic_blood_pressure=120,total_cholesterol=213,hdl_cholesterol=50,diabetes=False,smoker=False,on_hypertension_treatment=False,)ExamplesComing soonProgram StructureThis is a mixedRustand Python module.The rust source code is used to implement the equations. This is a lower level language that requires compilation prior to being run -- and thus is many times faster than pure python.The rust source code is located in the /src directory.The python source is located in the /pyascvd directory.Unit tests are implemented in the /tests directory usingslash.
Package: pyasdl
PyASDLA yet another implementation forZephyr ASDLformat.APIparse(source: str, *, filename: str = "<pyasdl>") -> ModuleParse the givensourcestring, and return the AST in the shape of anpyasdl.Module. The
full format is defined in thegrammar.asdlfile. Thefilenamecan be optionally supplied, and will be displayed if there is any syntax error.fetch_comments(source: str) -> Iterator[str]:Return an iterator of the ASDL comments in the givensourcestring.is_simple_sum(node: Sum) -> bool:Check whether if the givennode's all children lack any fields.ExamplesHere is a list of example tools that process the given ASDL withPyASDL:Typing Stub GeneratorPython Class GeneratorESDL GeneratorGraphQL Converter
Package: pyasgard
Attention!DEPRECATED
This is no longer being maintained and no future changes, updates or enhancements will be added.Asgard Python LibraryThis is a wrapper for the asgard api.The api mapping is inpyasgard/endpoints.pyExample usage:frompyasgardimportAsgard# With authentication# from base64 import b64encode# asgard = Asgard('http://asgard.example.com',#                 username='user',#                 password=b64encode('secret'))asgard=Asgard('http://asgard.example.com')asgard.ami.list()asgard.ami.show(ami_id='ami-i1234x')asgard.cluster.list()asgard.cluster.resize(name='appname',minAndMaxSize=4)WarningTheAsgard.asg.create()command requires some hacking to support a
dynamic keyword argument. This is documented in the command docstring as
well.client=Asgard('http://test.com')vpc_id='vpc-something'lb_list=['lb-something']lb_param='selectedLoadBalancersForVpcId{0}'.format(vpc_id)api=client.mapping_table['asg']['create']['default_params']api[lb_param]=lb_listclient.asg.create(**{lotsofparams})TestingTo run the unit tests, create aconfig.pyfile and runtox:# Unit test contantsENC_PASSWD='dGVzdHBhc3N3ZA=='URL='http://asgard.demo.com'USERNAME='happydog'
Package: pyasge
PyASGE - Python Bindings for ASGECIstatusdocsconda.recipepip buildscibuildwheelApybind11module designed to work with the
ASGE game engine and built with a CMake-based build system. ASGE is a simple 2D
game framework designed to allow rapid prototyping of games. It provides the minimum
of fuss when it comes to creating windows and moving sprites around the virtual
game-world. Though it had humble beginnings, it's evolved to support a number of
additional features over the years.PrerequisitesOn Unix (Linux, OS X)A compiler with C++17 supportCMake >= 3.14 or Pip 10+Ninja or Pip 10+Mac OSX support is working, but not fully tested due to lack of hardware access.Linux Build DependenciesX11brotlibz2harfbuzzlibpngzlibOn WindowsVisual Studio 2015 or newer (required for all Python versions, see notes below)CMake >= 3.14 or Pip 10+InstallationJust clone this repository and pip install. Note the--recursiveoption which is
needed for the pybind11 submodule:gitclone--recursivehttps://github.com/HuxyUK/pyasge.git
pipinstall./pyasgeWith thesetup.pyfile included in this example, thepip installcommand will
invoke CMake and build the module as specified inCMakeLists.txt.Special notes for WindowsCompiler requirementsPybind11 requires a C++11 compliant compiler, i.e Visual Studio 2015 on Windows.
Unlike regular C extension modules, it's perfectly fine to compile a pybind11
module with a VS version newer than the target Python's VS version. See theFAQfor more details.Runtime requirementsThe Visual C++ 2015 redistributable packages are a runtime requirement for this
project. It can be foundhere.Building the documentationDocumentation for the example project is generated using Sphinx. Sphinx has the
ability to automatically inspect the signatures and documentation strings in
the extension module to generate beautiful documentation in a variety formats.
The following command generates HTML-based reference documentation; for other
formats please refer to the Sphinx manual:cmake -G Ninja -H. -DASGE_BUILD_DEMOS=OFF -DASGE_ENABLE_DOXYGEN=OFF -Bbuild -DCMAKE_BUILD_TYPE=Releasecmake --build build --config Release -t pyasge_docsThe files will be output to the build/docs/html folder.LicensePyASGE is provided under a MIT License that can be found in the LICENSE
file. By using, distributing, or contributing to this project, you agree to the
terms and conditions of this license.Test callimportpyasgepyasge.INFO("Tis a good day to make a GAME!")pyasge.ERROR("Oh noooes")
Package: pyash
PyashHate shell scripting? Love Python! Meet the horrible Frankenstein of the two!Pyash takes the best part of shell scripting, the ability to stream data through great chains of shell programs, and adds that ability to Python. In the process it retains the same familiar syntax but in a more Pythonic form!frompyashimportcat,grepcat(".gitignore")|grep("env")>"out.txt"Find it on PyPI!Importing Shell ProgramsImporting shell programs is as easy asfrompyashimportgrep,find,bashPyash automatically searches yourPATHvariable and loads any executable programs it finds, making them available through import.Try to avoid importing*as you'll find basic builtin functions likeprint()suddenly don't work!Running Shell ProgramsOnce you've imported the programs you want to import you can use them as you would any normal Python function splitting arguments or keeping them all together as you want:print(grep("-i","-r","env","."))print(grep("-i -r env ."))It's important to note that all programs are lazy evaluated, i.e. a program only runs when Pyash knows where data is going.For example, the abovegrepcommands will only execute when you print their output.That means that if you don't care about the output you'll need to make sure you callrun()to make the program execute:kubectl("delete","pod","my-pod").run()Piping DataData can be piped between, to and from files using the same syntax you use in shell scripts:print(kubectl("get","pods")|grep("postgres"))echo("I'm a pretty butterfly")>butterfly.txtecho("Flutter! Flutter! Flutter!")>>butterfly.txt(docker("container","stop")<"my_containers.txt").run()Note that when you start piping a program's output somewhere else it begins execution, so the 2nd and 3rd examples don't need you to callrun().If you need to both pipe in from a file and out from a file you need to place parentheses around the pipe in, this just seems to be a limitation of our abuse of Python.(cat() | grep("env") < ".gitignore") > "myfile.txt"
Package: pyaskalono
pyaskalonoPython bindings foraskalono- rust library to detect license textsInstallationpip install pyaskalonoUsefromaskalonoimportidentifyLICENSE='''The MIT License (MIT)Copyright © 2021 <copyright holders>Permission 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.'''detected_license=identify(LICENSE)detected_license.name# 'MIT'detected_license.score# 0.9878048896789551PublishingTo upload new package runmaturin publishfrom pipenv environment
Package: py-ask-sdk-test
py_ask_sdk_testThis is a framework for testingAlexa Skillsdeveloped inPythonwith thealexa-skills-kit-sdk-for-python, which is mostly a translation of taimos'Alexa Skill Test FrameworkinTypescript, which itself is based on thealexa-skill-test-frameworkby Brian MacIntosh.The framework usesassertto check the expected behaviour. So the best way to go is using it withpytest.The ask-sdk version it is based on isask-sdk-core=1.10,ask-sdk-runtime=1.10andask-sdk-model=1.11.Install:You can install the framework via pip:pipinstallpy_ask_sdk_testExample:You can see an example for using the framework in the following and in the framework'stest-files:frompy_ask_sdk_test.alexa_testimportAlexaTestfrompy_ask_sdk_test.classesimportTestItem,SkillSettings,SupportedInterfacesfromrequest_builders.launch_request_builderimportLaunchRequestBuilderfromrequest_builders.intent_request_builderimportIntentRequestBuilderfrompseudo_handlerimporthandlerskill_settings=SkillSettings(app_id="<Your skill's id>",user_id="<Your user id>",device_id="<Your device id>",locale="<The locale of your skill>",interfaces=SupportedInterfaces())# interfaces your skill supports (audio, video etc.)deftest_launch_request():"""Tests the LaunchRequest's speech and repromt output"""alexa_test=AlexaTest(handler)alexa_test.test([TestItem(LaunchRequestBuilder(skill_settings).build(),expected_speech="Salve, gaudeo te videre!",expected_repromt="Vin aliquid dicere?",check_question=False),TestItem(IntentRequestBuilder("DeiIntent",skill_settings).build(),expected_speech=(r"Jupiter.+",True),expected_repromt="",check_question=False)])
Package: py-asl
py-aslPython Object Model for Amazon State LanguageThis package provides an object model for creating Step FunctionsExamplesSimple Hello World Exampleimportpy_asldefhello_world():state_machine=py_asl.StateMachine(Comment="A simple minimal example of the States language",StartAt="Hello World")state=py_asl.TaskState("Hello World",Resource="arn:aws:lambda:us-east-1:123456789012:function:HelloWorld",End=True)state_machine.States.append(state)hw=state_machine.dumps(indent=2)returnhwprint(hello_world())Example of creating a Parallel Taskimportpy_asldefparallel_states():state1=py_asl.TaskState("Hello World",Resource="arn:aws:lambda:us-east-1:123456789012:function:HelloWorld",End=True)state2=py_asl.TaskState("Goodbye World",Resource="arn:aws:lambda:us-east-1:123456789012:function:GoodbyeWorld",End=True)parallel_state=state_model.ParallelState("Hello Goodbye",Branches=[state1,state2],Next="Foo")ps=parallel_state.dumps(indent=2)returnpsprint(parallel_states())Arrays and Generated TemplatesTemplate variables that where place holders for arrays were tricky, so I implemented
a workaround which is probably not suitable for all cases...Let's say that
you have to deploy a Step Function that has a task that invokes an ECS/Fargate
task and you need to specify the VPC configuration. In this case you will need
to supply parameters that include a list of subnets and a list of Security Groups.Your code might look like this:importpy_aslParameters={"Cluster":"${cluster_arn}","TaskDefinition":"${task_definition_arn}","LaunchType":"FARGATE","NetworkConfiguration":{"AwsvpcConfiguration":{"SecurityGroups":"[${security_groups}]","Subnets":"[${subnets}]"}}}task=py_asl.TaskState("Run Fargate",Resource="arn:aws:states:::ecs:runTask.sync",End=True,Parameters=Parameters)state_machine=py_asl.StateMachine(Comment="Step Function to Test Invoking ECS/Fargate Task",StartAt="Run Fargate",States=[task])if__name__=='__main__':print(state_machine.dumps(indent=2))NOTE:The arrays for the security groups will be transformed into:{"Comment":"Step Function to Test Invoking ECS/Fargate Task","StartAt":"Run Fargate","States":{"Run Fargate":{"Resource":"arn:aws:states:::ecs:runTask.sync","End":true,"Parameters":{"Cluster":"${cluster_arn}","TaskDefinition":"${task_definition_arn}","LaunchType":"FARGATE","NetworkConfiguration":{"AwsvpcConfiguration":{"SecurityGroups":${security_groups},"Subnets":${subnets}}}},"Type":"Task"}}}It is expected that your Terraform code supplies and array. For example,variable "security_groups" {
    type = "list"
    default = ["ab-12345", "bc-56788"]
}

variable "subnets" {
    type = "list"
    default = ["itsy", "bitsy"]
}When replacing values in the template you can use:data "template_file" "step_function" {
    template = "${file("${path.module}/step-function.json.tpl")}"
    vars = {
        ...
        security_groups = "${jsonencode(var.cluster_security_groups)}"
        subnets = "${jsonencode(var.cluster_subnets)}"
    }
}