Saravanan666/pypi-org huggingface dataset:
Package: astdiff
ASTdiffCompare two commits in a git repository to guarantee that there are no semantic changes.Use this tool to corroborate that formatting tools don't change the code. Ifastdiffreturns 0, the Abstract Syntax
Tree of the files changed in the commits is the same.InstallationUsingpip:pipinstallastdiffDevelopment InstallationTo audit the code, or to modify it, installastdiffin development mode. The tool usespoetryto manage dependencies
and to buildpipinstallable packages.$gitclonehttps://github.com/auntbertha/astdiff.git
$cdastdiff
$poetrydevelop
$poetryrunpytestTo build new packages:$poetrybuildand distribute the wheel or tarball from the directorydist/.UsageThe most basic use ofastdiffis to check that a reformatting tool didn't change the meaning of the code. When it's
called with no argumentsastdiffcompares the working tree against the HEAD of the current branch:$astdiff
Running:gitdiff--name-only9d3219ba027d5a56040d23eb9ee3d23f7a410ad5
Checkingastdiff/astdiff.py...ok
✨Allfilesareequivalent!✨
$echo$?0astdiffreturns 0 if the ASTs are the same, and returns 1 otherwise. The messages are printed to standard error.astdiffcan also check a given commit, a given commit and the working tree, or any pair of commits. It accepts the
names of the commits in the same way thatgitdoes.Use-hor--helpto get help:$astdiff-h
Usage:astdiff.py[OPTIONS][COMMITS]...ComparetheASTofallchangedfilesbetweencommits.Withnoarguments,comparebetweenHEADandtheworkingtree.WithoneargumentCOMMIT,comparebetweenCOMMIT~1andCOMMIT.Withtwoarguments,COMMIT1andCOMMIT2,comparebetweenthosetwo.(COMMIT2canbeadot'.'tocomparebetweenCOMMIT1andtheworkingtree)Options:-h,--helpShowthismessageandexit.AlgorithmThe comparison of the ASTs is a very simple recursive function that traverses the trees in a pre-order depth-first
search. It can be audited to verify its correctness:astdiff.compare_ast.LICENSEThe MIT License (MIT)Copyright © 2018 Aunt BerthaPermission 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.
Package: asteg
astegSteganography : Hiding text or file inside an audioDESCRIPTIONThis program can be used for hiding text or a file inside an audio file. The program utilizes the high-frequency component of an audio file to embed its payload. Which is almost undetectable with the human ear. You will never notice any drop in audio quality.INSTALLATIONFrom a command line enter the command to install astegpip install astegYou need to have python 3 installed. asteg won't run on python 2.USESHiding 'Hello World!' inside infile.mp3. The resultant file is outfile.wav$asteg-p-ooutfile.wav-iinfile.mp3-t'Hello world!'Hiding secret.odt inside infile.mp3. The resultant file is outfile.wav$asteg-p-ooutfile.wav-iinfile.mp3-fsecret.odtMETAThe data is formatted first before embedding inside the audio. First a 10 byte header is added at the beginning of the data. The header format is as follows:Number of BytesDescription2'aS' Always14Payload length1Length for filename for file embedding (7bit) + encryption flag (1bit)1Version of used program1DEPENDENCYpydubnumpyscipyCURRENT LIMITATIONSDoes not support encryption. (Has plan to add)Generates uncompressed wav file. Which is too big.
Package: astep-forms-utils
Module helps with generating field sets and fields for usage in the architecture
aSTEP-2019 (At Aalborg Uversity). This can be used for any service written in flask, to make sure you don't
create too much duplicate code. it's strongly inspired by Django.Supported versionsPython >=3.5ExampleCreate an instance ofFieldSetwhich handles the different fields
both visualized in the/fields/endpoint as well as verified with/render/An example with with basis in fields could be:fromastep_form_utilsimportFieldSet,StringField,FloatFieldfromflaskimportFlask,jsonifyapp=Flask(__name__,static_url_path="")@app.route("/fields")deffields():field_set=FieldSet(StringField("my_name",label="Input Your Name:"),FloatField("my_age",label="Input Your Age:"))returnjsonify(field_set.as_form_fields())which will return json as follows:[{"label":"Input Your Name:","name":"my_name","type":"input"},{"label":"Input Your Age:","name":"my_age","type":"input-number"}]You can also use enums:fromastep_form_utilsimportFieldSet,EnumFieldfromenumimportEnumclassMyModel(Enum):PRETTY_MODEL=auto()UGLY_MODEL=auto()field_set=FieldSet(EnumField("my_string",MyModel,label="Pick a model"))'You can use a fieldset in your/render/endpoint as well, to validate data:fromastep_form_utilsimportFieldSet,StringField,FloatField,is_data_emptyfromflaskimportFlask,jsonify,requestapp=Flask(__name__,static_url_path="")@app.route("/render")defrender():field_set=FieldSet(StringField("my_name",label="Input Your Name:"),FloatField("my_age",label="Input Your Age:"))ifis_data_empty(request):returnjsonify({'chart_type':'text','content':'Supply data please!'})iffield_set.is_valid(request):my_name=field_set.cleaned_data['my_name']my_age=field_set.cleaned_data['my_age']returnjsonify({'chart_type':'text','content':f'Hello my name is{my_name}and i am{my_age}years old.'})To make it more DRY and reuse the FieldSet definition, you can utilize the factory
functionfield_set_factory, to reuse the same definition like this:fromastep_form_utilsimportStringField,FloatField,\is_data_empty,field_set_factoryfromflaskimportFlask,jsonify,requestapp=Flask(__name__,static_url_path="")# returns a method that creates a FieldSet with the two fieldsFIELD_SET_FACTORY=field_set_factory(StringField("my_name",label="Input Your Name:"),FloatField("my_age",label="Input Your Age:"))@app.route("/render")defrender():# Creates a fieldset with the defined fieldsfield_set=FIELD_SET_FACTORY()ifis_data_empty(request):returnjsonify({'chart_type':'text','content':'Supply data please!'})iffield_set.is_valid(request):my_name=field_set.cleaned_data['my_name']my_age=field_set.cleaned_data['my_age']returnjsonify({'chart_type':'text','content':f'Hello my name is{my_name}and i am{my_age}years old.'})raiseNotImplementedError()@app.route("/fields")deffields():field_set=FIELD_SET_FACTORY()returnjsonify(field_set.as_form_fields())A complete solution can be found in the
implementation of thechart type testmicroservice.
Package: asteria
Asteria (Al2O3)Missing AST featuresFeaturesRepr implementation to every node (usesastprettyif it is available, if not fall backs to theast.dump)AST Comparisons with other nodesCustom initializer with finding default values according to ASDL specShortcuts forfix_missing_locations,compile(e.gast.parse("2+2").compile())Unparsing shortcuts,ast.parse("2+2").to_source(). It uses astor if its available, if not it fallbacks to theast.unparseinterface.Parent/Child relationships to nodesHelpers functions for mutating tree (likeadd_globalmethod toModulenodes which inserts given node at the top of body)Symbol table access withget_symbol_tablemethodand many more...Demo>>>importast>>>importasteria>>>ast.parse("2+2")==ast.parse("2+2")True>>>ast.parse("2+2").body[0].valueBinOp(left=Constant(value=2,kind=None),op=Add(),right=Constant(value=2,kind=None),)>>>ast.parse("print(2+2)").compile()<codeobject<module>at0x7f2602f21450,file"<ASTERIA>",line1>>>>eval(_)4>>>ast.parse("import asteria").to_source()'import asteria'>>>sample=ast.parse("2+2")>>>sample.parentize()>>>sample.body[0].value.left.parentBinOp(left=Constant(value=2,kind=None),op=Add(),right=Constant(value=2,kind=None),)>>>sample.body[0].value.parentExpr(value=BinOp(left=Constant(value=2,kind=None),op=Add(),right=Constant(value=2,kind=None),),)>>>some_try=ast.parse("""\... try:...     def x():...             print(1)... finally: pass... """)>>>some_try.parentize()>>>some_try.body[0].body[0].body[0].valueCall(func=Name(id='print',ctx=Load()),args=[Constant(value=1,kind=None)],keywords=[],)>>>len(tuple(some_try.body[0].body[0].body[0].value.until_parented_by(ast.Try)))3>>>some_try.add_global(ast.parse("print('lol')").body[0])>>>print(some_try.to_source())print('lol')try:defx():print(1)finally:pass
Package: asterisk-ami
A simple Python AMI clientSee thecode of conduct.InstallInstall asterisk-amipipinstallasterisk-amiInstall latest asterisk-amipipinstallgit+https://github.com/ettoreleandrotognoli/python-amiUsageConnectfromasterisk.amiimportAMIClientclient=AMIClient(address='127.0.0.1',port=5038)client.login(username='username',secret='password')Disconnectclient.logoff()Send an actionfromasterisk.amiimportSimpleActionaction=SimpleAction('Originate',Channel='SIP/2010',Exten='2010',Priority=1,Context='default',CallerID='python',)client.send_action(action)Send an action with adapterfromasterisk.amiimportAMIClientAdapteradapter=AMIClientAdapter(client)adapter.Originate(Channel='SIP/2010',Exten='2010',Priority=1,Context='default',CallerID='python',)Synchronous Response#without adapterfuture=client.send_action(action)response=future.response#with adapterfuture=adapter.Originate(...)response=future.responseAsynchronous Responsedefcallback_response(response):print(response)#without adapterfuture=client.send_action(action,callback=callback_response)#with adapterfuture=adapter.Originate(...,_callback=callback_response)#you can use the future to wait the callback executereponse=future.responseListen Eventsdefevent_listener(event,**kwargs):print(event)client.add_event_listener(event_listener)Filter EventsWith a custom classfromasterisk.amiimportEventListenerclassRegistryEventListener(EventListener):defon_Registry(event,**kwargs):print('Registry Event',event)client.add_event_listener(RegistryEventListener())classAllEventListener(EventListener):defon_event(event,**kwargs):print('Event',event)client.add_event_listener(AllEventListener())With black or white listdefevent_listener(event,**kwargs):print(event)client.add_event_listener(event_listener,white_list=['Registry','PeerStatus'])client.add_event_listener(event_listener,black_list=['VarSet'])Like a custom classdefevent_listener(event,**kwargs):print(event)client.add_event_listener(on_VarSet=event_listener,on_ExtensionStatus=event_listener)client.add_event_listener(on_event=event_listener)Filter Event Valuedefevent_listener(event,**kwargs):print('Ringing',event)client.add_event_listener(event_listener,white_list='Newstate',ChannelStateDesc='Ringing',ConnectedLineNum='2004',)Filter with regeximportredefevent_listener(event,**kwargs):print(event)client.add_event_listener(on_Newstate=event_listener,white_list=re.compile('.*'),ChannelStateDesc=re.compile('^Ring.*'),)
Package: asterisk_mbox
==========asterisk_mbox==========asterisk_mbox is a client/server which provides an API to work with Asterisk voicemail mailboxesThis is the client library.  Install asterisk_mbox_server on the Asterisk server as well.Capabilities============* Display all metadata for all messages stored in a single mailbox* Convert messages to text using Google's speech-to-text service* Retrieve the audio of a message in MP3 format* Support both synchronous and asynchronous APIFuture work============* Support deleting messages* Support moving messages* Support multiple mailboxes* Support alternate text-to-speech providers
Package: asterisk_mbox_server
AsteriskVM is a client/server which provides an API to work with Asterisk voicemail mailboxes
This is the server code which needs to be installed on the Asterisk server and will monitor
mailbox directory for changesDependenciesLinux >= 2.6.13Python >= 3.4LameCapabilitiesDisplay all metadata for all messages stored in a single mailboxConvert messages to text using Google’s speech-to-text serviceRetrieve the audio of a message in MP3 formatSupport both synchronous and asynchronous APIConfigurationConfiguration is performed via the config.ini fileParametershost(Optional): The IP address to listen on for client requests. This defaults to all IP addresses on the server. To listen only locally, choose 127.0.0.1port(Optional): The port to listen on for client requests. Defaults to 12345.password(Required): A password shared between client and server. Use only alpha-numeric characters and spacesmbox_path(Required): The path to the storage location of mailbox files. This is typically /var/spool/asterisk/voicemail/default/<mailbox>/cache_file(Required): A fully-qualified path to a file thht can be written by the server containing transcriptions of voicemails. Example: /var/spool/asterisk/transcription.cachegoogle_key(Required): Your 40 characters Google API key.cdr(Optional): Where to find CDR data.  Supports various SQL databases as well as a file log.Future workSupport moving messagesSupport multiple mailboxesSupport alternate text-to-speech providers
Package: asterism
asterismHelpers and common patterns used in Project Electron infrastructure. This package is named after a pattern or group of stars that is visually obvious, but not officially recognized as a constellation. Read more about asterisms onWikipedia.SetupMake sure this library is installed:$ pip install asterismUsageYou can then useasterismin your Python scripts and applications by importing it:import asterismWhat's herebagit_helpers- contains generic bagit functions to validate and update bags.file_helpers- generic functions for manipulating files and directories, as well as working with ZIP and TAR files.models- aBasePackageabstract base model that represents a bag of archival records.views- aBaseServiceViewand aRoutineViewwhich provide abstract wrapping methods for handling JSON requests and responses.DevelopmentThis repository contains a configuration file for gitpre-commithooks which help ensure that code is linted before it is checked into version control. It is strongly recommended that you install these hooks locally by installing pre-commit and runningpre-commit install.LicenseThis code is released under anMIT License.
Package: asterix4py
asterix4pyPure python library for parsing/decoding EUROCONTROL ASTERIX protocol binary data.This library tries to be an easy way to use Python as Asterix decoder without the need of a big library. Focus is currently not yet on speed but to be simple and userfriendly.
The code is based on the discontinued code from Wontor, adding missing functionalities and several bugfixes.  Some simple code examples and Asterix sample files are included for testing purposes only.This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to contribute and/or redistribute it under certain conditions.AsterixASTERIX stands for All Purpose STructured EUROCONTROL SuRveillance Information EXchange. It is an ATM Surveillance Data Binary Messaging Format which allows transmission of harmonised information between any surveillance and automation system. ASTERIX defines the structure of the data to be exchanged over a communication medium, from the encoding of every bit of information up to the organisation of the data within a block of data - without any loss of information during the whole process. More about ASTERIX protocol you can find here:http://www.eurocontrol.int/services/asterixReferencesBased on the work of:Wontor -https://github.com/wontor/pyasterixDamir Salantic -https://github.com/CroatiaControlLtd/asterixContributorsJake Hawkins -https://github.com/drumlight
Package: asterix-decoder
Asterix is Python module used for parsing of EUROCONTROL ASTERIX protocol data.ASTERIX stands for All Purpose STructured EUROCONTROL SuRveillance Information EXchange.
It is an ATM Surveillance Data Binary Messaging Format which allows transmission of harmonised information between any surveillance and automation system.
ASTERIX defines the structure of the data to be exchanged over a communication medium, from the encoding of every bit of information up to the organisation of the data within a block of data - without any loss of information during the whole process.
More about ASTERIX protocol you can find here:http://www.eurocontrol.int/services/asterixAsterix application was developed by Croatia Control Ltd.
Python module developed by Damir Salantic.This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See COPYING file for details.
Package: asterogap
AsteroGaP (Asteroid Gaussian Processes) is a Bayesian-based Gaussian Process model that seeks to fit sparsely-sampled asteroid light curves.By utilizing a more flexible Gaussian Process framework for modeling asteroid light curves, we are able to represent light curves in a periodic but non-sinusoidal manner.Free software: 3-clause BSD licenseDocumentation:https://dirac-institute.github.io/asterogap.InstallationAt the command line (via pip):$ pip install asterogapAt the command line (via GitHub):$ git clonehttps://github.com/dirac-institute/asterogap.git$ cd asterogap$ python setup.py install
Package: asteroid-filterbanks
Asteroid Filterbanks.InstallLatest release using pip:pipinstallasteroid-filterbanksDev installgitclonehttps://github.com/asteroid-team/asteroid-filterbankscdasteroid-filterbanks
pipinstall-e.["all"]Citing Asteroid@inproceedings{Pariente2020Asteroid,title={Asteroid: the {PyTorch}-based audio source separation toolkit for researchers},author={Manuel Pariente and Samuele Cornell and Joris Cosentino and Sunit Sivasankaran andEfthymios Tzinis and Jens Heitkaemper and Michel Olvera and Fabian-Robert Stöter andMathieu Hu and Juan M. Martín-Doñas and David Ditter and Ariel Frank and Antoine Deleforgeand Emmanuel Vincent},year={2020},booktitle={Proc. Interspeech},}
Package: asteroid-info
NomeAsteroidsInfo - first_assignmentDescrizioneLa seguente applicazione ha lo scopo di fornire all'utente una serie di informazioni riguardanti asteroidi in una data specificata. Le informazioni riportate sono:Numero di asteroidi che nella data selezionata orbitano vicino alla TerraNome dell'asteroideDiametro (in metri) dell'asteroideVolume (in metri cubi) dell'asteroideSuperficie (in metri quadri) dell'asteroideSe ci sono stati asteroidi potenzialmente pericolosi nella data specificataUtilizzoAll'avvio dell'applicazione si aprira' un calendario nella quale l'utente potra' selezionare una data. Cliccando su "Ottieni informazioni", si avra' accesso ai dati degli asteroidi.RoadmapNelle prossime versioni verranno implementate ulteriori informazioni quali, ad esempio, le caratteristiche di altri corpi celesti.Utilizzo della pipeline ci/cdLa pipeline e' suddivisa in diverse fasi (stages) per gestire la costruzione, la verifica, i test, package e il rilascio del software.La pipeline e' definita nel file .gitlab-ci.yml e comprende i seguenti stages:Build: Questo stage e' responsabile della costruzione dell'ambiente virtuale e dell'installazione delle dipendenze del progetto specificate nel file requirements.txt.Verify: Il codice dell'applicazione viene controllato utilizzando pylint per garantire la conformita' alle linee guida di codifica.Unit test: Vengono controllati i singoli metodi dell'applicazione.Integration test: Viene controllata l'interazione tra API e applicazione e l'interazione tra i diversi metodi dell'applicazione.Package: Il progetto viene confezionato come un pacchetto Wheel, per facilitarne l'installazione su altri sistemi.Release: Il job di Release iniziera' solo dopo che il job di Package e' stato completato senza errori. Cio' assicura che il pacchetto creato durante il job di Package sia disponibile per il job di rilascio. Il pacchetto viene caricato su un repository di pacchetti utilizzando Twine.Sono state utilizzate due variabili di ambiente contenenti le credenziali necessarie per autenticarsi su PyPI.La variabile d'ambiente PIP_CACHE_DIR definisce il percorso della directory destinata a ospitare la cache dei pacchetti scaricati da PIP durante l'esecuzione della pipeline. Questa pratica consente di ottimizzare il processo di costruzione. Una volta che un pacchetto e' stato scaricato, viene archiviato in questa directory. Nelle esecuzioni successive della pipeline, PIP cerca di utilizzare la cache anziche' scaricare nuovamente i pacchetti, contribuendo a risparmiare tempo ed evitare la necessita' di scaricare ripetutamente le stesse dipendenze.AutoriMassimo Zarantonello - MAT. 866457Anna Marika Biasco - MAT. 865873Francesca Pulera' - MAT. 870005Link al repositoryhttps://gitlab.com/fam3680241/2023_assignment1_asteroid_counterLicenzaLicenza utilizzata: MIT
Package: asteroid-lang
AsteroidAsteroid is a modern, multi-paradigm programming language that supports first-class patterns.  More details can
be found at the websiteasteroid-lang.org.
Documentation on Asteroid can be found atasteroid-lang.readthedocs.io.New in Release 2.0.1We now support the ASTEROIDPATH environment variable which is expected to have a colon seperated list of directories to search for user defined modules.The logical operators 'and' and 'or' are now evaluated in short-circuit fashion.Files loaded with the 'load' statement are now considered modules and work similarly to Python modules.Added the 'toplevel' function which returns true if control is in the module originally loaded by the interpreter.Added the match statement similar to the match statement in Python.No longer supports type hierarchies for the primitive types.  The functions in the 'type' module are now considered builtins. The 'type' module itself has been eliminated.The Minimal Asteroid Debugger (MAD) replaces ADB in this release.The shorthand conditional pattern can now be applied to arbitrary patterns. E.g. The pattern(a,b,c):(%integer,%integer,%integer)constrains the triple(a,b,c)to be a triple of integers.  The above shorthand conditional pattern is equivalent to the conditional pattern,(a,b,c) if (a,b,c) is (%integer,%integer,%integer)New in Release 1.1.4Allows pattern constraint operator to map certain variables that a pattern
matched to be bound into the current scope.Supports a new OS module.Supports iteration over tuple componentsTheevalfunction has been extended to strings for the interpretation of
Asteroid programs in those strings.Structures now support a__str__member function that allows the user
to specify a string representation of the structure.Updated user and reference guides.Lots of bug fixes.New in Release 1.1.3Fixes a fatal bug on Windows regarding thereadlinefunctionality in Python 3.10.Fixes a bug with escaped double quotes in strings.New in Release 1.1.2An experimental implementation of an interactive debugger that supports debugging pattern matching and in
particular, pattern matching with first-class patterns.A Python API allowing the developer to call the Asteroid interpreter from within a Python program and also embed
Python code in an Asteroid program.Eliminated thestridenotation in list comprehensions and replaced it with thestepnotation.Lots of bug fixes.New in Release 1.0.0Interpreter line-editing features similar to Python include interactive editing, history substitution and code completion on systems that support the GNU Readline library.New object-based modules for system modules.  For example the functions within theiomodule are now accessed with the@operator,load system io.
io @println "Hello, World!".In the absence of explicit return statements the last expression evaluated within
a function body provides an implicit return value, e.g.,function inc
   with i do
     i+1
   endLots of bug fixes!