Saravanan666/pypi-org huggingface dataset:
Package: avocado-framework-plugin-spawner-remote
This plugin makes use of remoteaexpectsessions (to remote
hosts or equivalently remote containers behind remote hosts forwarded
via specific ports) as slots to schedule test runs on.It mainly draws inspiration and mimics slot and other
code from the LXC spawner with the exception of extra configurable
test timeout that is enforced by aexpect as a dependency and fully
specific to this type of spawner.To install the Remote Spawner plugin from pip, use:$ sudo pip install avocado-framework-plugin-spawner-remoteAfter it is installed, add a slot (e.g. “board”) to your avocado
config file:[spawner.remote]
slots = ['board']Then you need a JSON file of the same name as the slot. Its contents
are the command line parameters of aexpect’sremote_loginfunction
of moduleremote, e.g.:{
   "client": "telnet",
   "host": "192.168.64.2",
   "port": "23",
   "username": "root",
   "password": "",
   "prompt": "#"
}Final important detail: the remote site also needs avocado
installed.
Package: avocado-framework-plugin-varianter-pict
avocado_varianter_pictThis plugin uses a third-party tool to provide variants created by
“Pair-Wise” algorithms, also known as Combinatorial Independent
Testing.Installing PICTPICT is a free software (MIT licensed) tool that implements
combinatorial testing.  More information about it can be found athttps://github.com/Microsoft/pict/.If you’re building from sources, make sure you have a C++ compiler
such as GCC or clang, and make.  The includedMakefileshould
work out of the box and give you apictbinary.Then copy thepictbinary to a location in your$PATH.
Alternatively, you may use the plugin--pict-binarycommand line
option to provide a specific location of the pict binary, but that
is not as convenient as having it on your$PATH.Using the PICT Varianter PluginTo install the Avocado PICT plugin from pip, use:$ sudo pip install avocado-framework-plugin-varianter-pictTo run the example below, use the test included in the avocado code$ git clone https://github.com/avocado-framework/avocado.gitThe following listing is a sample (simple) PICT file included
atavocado/examples/varianter_pict/params.pictarch: intel, amd
block_driver: scsi, ide, virtio
net_driver: rtl8139, e1000, virtio
guest: windows, linux
host: rhel6, rhel7, rhel8To list the variants generated with the default combination order (2,
that is, do a pairwise idenpendent combinatorial testing):$ avocado variants --pict-parameter-file=avocado/examples/varianter_pict/params.pict
Pict Variants (11):
Variant amd-scsi-rtl8139-windows-rhel6-acff:    /run
Variant intel-scsi-virtio-linux-rhel8-26df:    /run
Variant amd-ide-virtio-windows-rhel7-3fe7:    /run
Variant amd-virtio-e1000-linux-rhel7-bf2d:    /run
Variant intel-scsi-e1000-windows-rhel8-4808:    /run
Variant intel-scsi-rtl8139-linux-rhel7-2975:    /run
Variant intel-virtio-rtl8139-windows-rhel8-6632:    /run
Variant intel-ide-rtl8139-linux-rhel6-edd2:    /run
Variant intel-virtio-virtio-windows-rhel6-e95a:    /run
Variant amd-ide-e1000-linux-rhel8-5fcc:    /run
Variant amd-ide-e1000-linux-rhel6-eb43:    /runTo list the variants generated with a 3-way combination:$ avocado variants --pict-parameter-file=avocado/examples/varianter_pict/params.pict \
  --pict-order-of-combinations=3

Pict Variants (28):
Variant intel-ide-virtio-windows-rhel7-aea5:    /run
...skip...
Variant intel-scsi-e1000-linux-rhel7-9f61:    /runTo run tests, just replace thevariantsavocado command forrun:$ avocado run --pict-parameter-file=avocado/examples/varianter_pict/params.pict /bin/trueThe tests given in the command line should then be executed with all
variants produced by the combinatorial algorithm implemented by PICT.
Package: avocato
avocatois a simple and fast ORM/framework-agnostic object serialization library for
converting complex objects to and from simple Python datatypes.Don’t be scared if you’re using an ORM/framework. It can easily be adapted to be used with any
ORM/framework of your liking. Currently it supports Django ORM and peewee.This library is heavily influenced byserpy.Installation$pipinstallavocatoDocumentationFind documentation atavocato.rtfd.ioExampleimportavocatoclassBar(object):patrick='star'classFoo(object):over=9000spongebob='squarepants'bar=Bar()classBarSerializer(avocato.Serializer):patrick=avocato.StrField()classFooSerializer(avocato.Serializer):over=avocato.IntField()spongebob=avocato.StrField()bar=BarSerializer()foo=Foo()FooSerializer(foo).data# {'over': 9000, 'spongebob': 'squarepants', 'bar': {'patrick': 'star'}}
Package: avogadro
Avogadro 2IntroductionAvogadro is an advanced molecular editor designed for cross-platform use in
computational chemistry, molecular modeling, bioinformatics, materials science,
and related areas. It offers flexible rendering and a powerful plugin
architecture.Core features and goals of the Avogadro project include:Open source distributed under the liberal 3-clause BSD licenseCross platform with builds on Linux, Mac OS X and WindowsIntuitive interface designed to be useful to whole communityFast and efficient embracing the latest technologiesExtensible, making extensive use of a plugin architectureFlexible supporting a range of chemical data formats and packagesThe code in this repository is a rewrite of Avogadro with source
code split across alibraries repositoryand anapplication repository.
The new code architecture provides a high-performance rendering engine, modern
code development, and significantly improved speed and stability.Avogadro 2 is being developed as part of theOpen Chemistryproject by an open community, and was started atKitwareas
an open source community project. The Avogadro 1.x series currently has more
features, and can be foundhere. We are actively porting more
features to the Avogadro 2 code base, and making regular releases to get
feedback from the community.InstallingWe provide nightly binaries built by GitHub actions for:Linux AppImageMacOSWindows 64-bitIf you would like to build from source we recommend that you
follow ourbuilding Open Chemistryguide that will take care of
building most dependencies.ContributingWe welcomeallkinds of contributions as a community project, from bug
reports, feature suggestions, language translations, Python plugins,
and C++ code development.Our project uses the standard GitHub pull request process for code review
and integration. Please check ourcontributionguide for more
details on developing and contributing to the project. TheGitHub issue
trackercan be used to report bugs, make feature requests, etc. Our API isdocumented onlinewith updated documentation generated nightly.To introduce yourself, ask for help, or general discussion, we welcome everyone
to ourforumContributors Hall of Fame:
Package: avogadr-py
avogadr-pySimple avogadr.io batch downloader python scriptInstallationavogadr-py is avalaible through Python Package Index (PyPI) usingpip:foo@bar:~$python3-mpipinstall--upgradeavogadr_pyTo uninstall usingpip:foo@bar:~$python3-mpipuninstallavogadr_pyCommand referencefoo@bar:~$avogadr-py-husage: avogadr-py [-h] [-i INPUT] [-o OUTPUT_FOLDER] [-b BACKGROUND] [-f FOREGROUND] [-W WIDTH] [-H HEIGHT] [-n]options:-h, --help            show this help message and exit-i INPUT, --input INPUTJSON formatted compound list. Defaults to 'compounds.json'.-o OUTPUT_FOLDER, --output-folder OUTPUT_FOLDERFolder to output files to. Defaults to 'output/'.-b BACKGROUND, --background BACKGROUNDBackground colour in HEX format. Defaults to '24283b'.-f FOREGROUND, --foreground FOREGROUNDForeground colour in HEX format. Defaults to '7aa2f7'.-W WIDTH, --width WIDTHImage width in pixels. Defaults to '1920'.-H HEIGHT, --height HEIGHTImage height in pixels. Defaults to '1080'.-n, --no-include-nameDon't include compound names. Defaults to 'False'.Examplefoo@bar:~$avogadr-py-icompounds.json-W3840-H2160-ooutput/2160p/blue-f7aa2f7DevelopmentSource code repository is available onGitHub. Feel free to contribute.Bug reportsand suggestions are welcome.Licenseavogadr-py is licensed under theMIT License.AcknowledgementI would like to thankSaul Johnsonfor the amazingavogadr.iowebsite that is used as basis for this script.
Package: avoid_disaster
avoid_disasterAvoid Disaster can be used to script daily, weekly or monthly backups and upload them to S3.For more information check out:http://amix.dk/blog/post/19529#Avoid-Disaster-Script-backups-easily-to-Amazon-S3ExamplesExample of creating a backups of test_dir/:import os
from avoid_disaster import S3Uploader, gunzip_dir, generate_file_key

#--- Globals ----------------------------------------------
AWS_KEY = 'YOUR AWS KEY'
AWS_SECRET = 'YOUR AWS SECRET'

s3_uploader = S3Uploader(AWS_KEY,
                         AWS_SECRET,
                         'backups.your_domain.com')

#--- Easy usage ----------------------------------------------
#Daily
s3_uploader.compress_and_upload('test_dir/',
                                'test_dir.%(weekday)s.tgz',
                                replace_old=True)

#Monthly
s3_uploader.compress_and_upload('test_dir/',
                                'test_dir.%(month_name)s.tgz',
                                replace_old=True)

#Weekly
s3_uploader.compress_and_upload('test_dir/',
                                'test_dir.%(week_number)s.tgz',
                                replace_old=True)


#--- Generic usage ----------------------------------------------
file_key = generate_file_key('test_dir.%(weekday)s.tgz')
gz_filename = gunzip_dir('test_dir/', file_key)
s3_uploader.upload(file_key, gz_filename, replace_old=True)
os.remove(gz_filename)Copyright: 2010 by amix
License: BSD.
Package: avoin
# avoin
Python code for data scraping
(c) 2012 Ville Korhonen (ville@xd.fi), GPLv3## Installation
You may install directly from PyPI using:pip install avoinor latest HEAD via git:pip install git+https://github.com/ypcs/avoin.git#egg=avoin## Using (via Python Shell)>>> from avoin.scraper.scraper import DefaultScraper, html_title_parser
>>> scraper = DefaultScraper()
>>> url = 'http://www.google.com/'>>> result = scraper.parse(url, parser=html_title_parser)
>>> print result
Google>>> result = scraper.parse(url, parser=html_title_parser, format='json')
>>> print result
"Google"## Using (via command line)
Fetch all URLs from webpage as plaintextavoin xpath –url ‘http://ypcs.fi/’ –xpath‘//a/@href’ –format text
Package: avologger
AvologgerA generic logging class for PythonBasic setup and usage are simple.  Just import the class and create a Logger instance with a location to save the log file, it will handle everything else!The log files will even be capped at a configurable limit and rotated after they have reached the limit.To install (via pip):
Next run the install command:pipinstallavologgerTo install (via source):
Download the source files as an archive and extract them on your computer.Next run the install command:pythonsetup.pyinstallUsage (for more detailed example see avologger_sample.py in sample directory):fromavologgerimportLoggerdefmain():log=Logger("/logs/test.log")log.info("This is a test...")log.error("We have a problem!")if__name__=="__main__":main()AttributesLog File LocationLogger Name (Default: Calling script)Max Log File Size {in Megabytes} (Default: 1 MB)Log File Backup Count (Default: 10)Logging Level (Default: INFO)Log Format (Default: %(levelname)s: [%(name)s]: %(asctime)s - %(message)s)Date Format (Default: %m/%d/%Y %H:%M:%S)All attributes are configurable, and all except log file location have default values.Additional FeaturesTiming decorator (captures the run time of wrapped functions)Logs any uncaught exeptions with the addition of 1 line to your codeLogging LevelsDEBUGINFOWARNINGERRORCRITICALEXCEPTIONLog File Sample Output
Package: avonage
AvonageDescriptionAvonage is an implementation of asynchronous client for Vonage / Nexmo. The package offers async client as a class for inheritance and extension andsend_smsmethod, which abstracts Vonage / Nexmo API call to send a SMS.InstallationpipinstallavonageUsageBefore using the package, please consider to getting Vonage / Nexmo API key and secret.
You can specify Vonage credentials as environment variables or pass directly to function.
Package can pick next environment variables:=============Mostoftenused============VONAGE_KEYVONAGE_SECRET==========================================VONAGE_SIGNATURE_SECRETOption 1: With futureimportosimportasynciofromavonage.clientimportVonageAsyncloop=asyncio.get_event_loop()future=asyncio.Future()params={'from':os.getenv('VONAGE_VIRTUAL_NUM'),'to':os.getenv('VONAGE_RECEIVER_NUM'),'text':'Hi there!','type':'unicode'}asyncio.ensure_future(VonageAsync().send_message(params,loop,future))loop.run_until_complete(future)Option 2: With awaitableimportosimportasynciofromavonage.clientimportsend_smsloop=asyncio.get_event_loop()loop.run_until_complete(send_sms(key=os.environ.get("VONAGE_KEY",None),secret=os.environ.get("VONAGE_SECRET",None),from_num=os.getenv('VONAGE_VIRTUAL_NUM'),to_num=os.getenv('VONAGE_RECEIVER_NUM'),text='Hi there!',loop=loop))
Package: avplayer
avplayerPyAV Media PlayerCommandline Toolspython-mavplayer--helpFeaturesopencv-pythoncompatibilityTo prevent freeze when using opencv-python's imshow,
do not useimport avat file-scope.Please refer to the following link:AV import leads to OpenCV imshow freeze · Issue #21952 · opencv/opencvpython - Can't show image with opencv when importing av - Stack OverflowLicenseSee theLICENSEfile for details. In summary,avplayeris licensed under theMIT license.
Package: avplib
avplibDescriptionAVP- ASCII Video Player. Plays, converts any video to ASCII video that can be played in terminale.FeaturesCan play any ASCII video in the terminal.Can convert an ASCII video file and play it back.Can select a black and white gradation palette (in ASCII).Installpython -m pip install --upgrade avplibUsagepython -m avplib [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  cav      Play video files (*.mp4/*.avi/...)
  convert  Convert Video Files to ASCII Video File.
  play     Play ASCII Video.Examples🎬 Bad Apple![EXAMPLE-1](https://user-images.githubusercontent.com/60302782/233639445-20c039e2-6ab7-48ac-8f5b-96e0317065c8.webm)
Package: avproxyrotate
Rotates Avast proxy serverspip install avproxyrotateDisable ipv6:https://networking.grok.lsu.edu/Article.aspx?articleid=17573fromavproxyrotateimportstart_avaststart_avast(sleeptime_reconnect=3,hotkey_change="ctrl+alt+m",# Changes the proxy server via hotkeyhotkey_stop="ctrl+alt+n",# Kills the scriptdns="100.122.0.0",rotate_server_each_n_seconds=15,# changes IP each n secondsclear_used_ips_after_n_seconds=3600,# clears already used IPs during proxy rotationpath_app=r"C:\Program Files\Avast Software\SecureLine VPN",# install folderpath_data=r"C:\ProgramData\Avast Software\SecureLine VPN",# App data - IPs and tlsdomain are extracted from log files, that means, before you use this function, you have to connect to some avast servers using their app)
Package: avrcp-volume
AVRCP-VOLUMEAvrcp volume controller.The service provides avrcp volume notifications and infinite avrcp and pulseaudio volume increasing.Installationaur:avrcp-volumepip:$ pip install avrcp-volume
$ sudo -E avrcp-volume --install-serviceUsage$ systemctl --user start avrcp-volume.service
$ systemctl --user enable avrcp-volume.serviceJust try to change volume on your headphones. Push avrcp volume using pulseaudio signals(default volume up keybind and other actions) and vice versa.
Package: avrdude-windows
avrdude_windowsThis package installs the avrdude (x32 and x64-only) binaries for Windows via pypi/pip. There is a single python function in this library which allows you to get the path of the avrdude executable:fromavrdude_windowsimportget_avrdude_pathprint(get_avrdude_path())The MIT license in this repository only applies to the single python function mentioned above - avrdude is licensed separately. Source code and binary releases for avrdude can be found in theproject repository.If you are using Mac, you should use Homebrew instead:brew install avrdudeOr on Linux, you should use the package manager of your distribution, for example:sudo apt install avrdude
Package: avrex
avrex: AssociationVoice reports exporteravrex is a Python library and command-line tool for downloading reports
off websites hosted byAssociationVoice.
AssociationVoice provides websites for property management, and may be used
by groups like strata corporations, condo boards, and homeowner associations (HOAs).avrex makes it easy for data stored on AssociationVoice websites to be
exported for backup, automation, analysis, and transformation.Installationpip install avrexSupports Python 3.7+. Tested on Python 3.9.UsageFor all operations, avrex needs the URL for the AssociationVoice site's login page,
and a corresponding username and password.
These arguments are automatically picked up from the environment variablesAV_URL,AV_USERNAME, andAV_PASSWORD.
They are also automatically loaded from an Envfile if present,
and accepted as options in the CLI, and as arguments in the API.Command-line interfaceInstallation adds theavrexscript. The commands areavrex reportsandavrex download-report:> avrex reports --help
Usage: avrex reports [OPTIONS]

  List available reports.

Options:
  --username TEXT
  --password TEXT
  --url TEXT       URL to login page
  --help           Show this message and exit.> avrex download-report --help
Usage: avrex download-report [OPTIONS] REPORT DESTINATION

  Download a report.

  REPORT is a report ID or exact name of a report. DESTINATION is a path to
  a file. Existing files are overwritten. The file must have an extension
  matching a valid export format for the report.

Options:
  --date-range TEXT  Format: YYYY-MM-DD,YYYY-MM-DD
  --username TEXT
  --password TEXT
  --url TEXT         URL to login page
  --help             Show this message and exit.APIReports listing and downloading is available inavrex.AssociationVoiceApi:>>>fromavreximportAssociationVoiceApi>>>api=AssociationVoiceApi(username="foo",password="bar",url="https://secure.associationvoice.com/Account/Login/100")>>>api.list_reports()OrderedDict([('16', 'Advanced Map Usage'), ('6', 'Directory - Communication Methods Updates'), ('15', ...>>>withopen("comm-updates.csv","wb")asoutf:...api.download_report("Directory - Communication Methods Updates","2021-01-01","2021-01-31","CSV",outf)
Package: avr_helpers
#avr_helpers#This package provides helper classes for interacting with the [AVR][1]
tool-chain.  It includes a copy ofavrdudefor Windows, and Linux _(32-bit
and 64-bit)_, along with theavrdude.conffile from the [Arduino 1.0.5
IDE][2].  This allows stand-alone flashing of compile.hexfirmware files.[1]:http://en.wikipedia.org/wiki/Atmel_AVR[2]:http://arduino.cc/en/main/software##avrdudeAPI ##Theavr_helpers.AvrDudeclass implements an API for:Scanning available serial ports for a connected device.Flashing a.hexbit-stream file to an AVR device.###AvrDudeAPI Usage ###>>> from avr_helpers import AvrDude
>>> AvrDude?
Type:            type
String form:     <class ‘avr_helpers.AvrDude’>
File:            ...
Init definition: AvrDude(self, protocol, microcontroller, baud_rate, conf_path=None, port=None)
Docstring:       ...
>>> avr_dude = AvrDude(‘arduino’, ‘atmega168’, ‘19200’)
>>> # `-D` disables erase cycle to speed up programming.
>>> stdout, stderr = avr_dude.flash(‘blink.hex’, [‘-D’])
>>> print stdout>>> print stderravrdude-x64: AVR device initialized and ready to accept instructionsReading | ################################################## | 100% 0.00savrdude-x64: Device signature = 0x1e9406
avrdude-x64: reading input file “blink.hex”
avrdude-x64: writing flash (1056 bytes):Writing | ################################################## | 100% 0.76savrdude-x64: 1056 bytes of flash written
avrdude-x64: verifying flash memory against blink.hex:
avrdude-x64: load data flash data from input file blink.hex:
avrdude-x64: input file blink.hex contains 1056 bytes
avrdude-x64: reading on-chip flash data:Reading | ################################################## | 100% 0.68savrdude-x64: verifying …
avrdude-x64: 1056 bytes of flash verifiedavrdude-x64 done.  Thank you.Note that since theavrdude.conffile from the Arduino IDE is included in theavr_helperspackage, thearduinoprotocol may be used, allowing easy
flashing of pre-compiled.hexfiles to Arduino devices.
Package: avri-api
Python Avri APIUnofficial wrapper around theAvriAPI, for automation purposes.Usagepipinstallavri-apiInitialize the client with youpostal codeandhouse number. Optionally provide ahouse_nr_extensionand/or acountry_code.fromavri.apiimportAvriclient=Avri('1234AB',42)Exposes the following functions:client.upcoming()returns first upcoming collecting day in aGarbageobjectclient.upcoming_of_each()returns first upcoming collecting day for each garbage type in aList[Garbage]objectclient.all()returns all upcoming collecting days in aList[Garbage]objectBothupcomingandupcoming_of_eachcontain today's pickup.TheGarbageobjectContainsname: The name of the garbage type, e.g.plasticorgft.day: A python datetime object representing the collecting date.In a long living processData is cached for6days before it's refreshed to reduce the number of API calls made.
Package: avro
Apache Avro™Apache Avro™ is a data serialization system. To learn more, please visit ourwebsite.DocumentationApache Avro documentation is maintained on ourwiki.ContributingTo contribute to Avro, please readHow to Contributeon the wiki.License, Credits and AcknowledgementsLicense, credits and acknowledgements are maintained in theLICENSE.txtandNOTICE.txtin the source code repository. Those files are also included with the installed package.
Package: avro-byte-counter
Getting startedInstall withpip install avro-byte-counterAnd run the following script.fromavro.ioimport*importiofromavro_byte_counter.avro_byte_counterimportAvroByteCounterschema=avro.schema.parse("""{"type": "record","name": "Person","fields": [{"name": "userName",       "type": "string"},{"name": "favoriteNumber", "type": ["null", "long"], "default": null},{"name": "interests",      "type": {"type": "array", "items": "string"}}]}""")# Write byteswriter=DatumWriter(schema)bytes_writer=io.BytesIO()writer.write({"userName":"Martin","favoriteNumber":1337,"interests":["hacking","daydreaming"]},BinaryEncoder(bytes_writer))# Count bytes per fieldraw_bytes=bytes_writer.getvalue()avro_byte_counter=AvroByteCounter(schema)byte_count_per_field=avro_byte_counter.count_byte_per_field(raw_bytes)print(byte_count_per_field)For flamegraph compatible format, run:fromavro_byte_counter.utilsimportcount_to_flamegraph_formatprint(*count_to_flamegraph_format(byte_count_per_field),sep='\n')Generate flamegraphYou can combine the python file created  ingetting startedwith theflamegraph.plscript to generate a flamegraph.curlhttps://raw.githubusercontent.com/brendangregg/FlameGraph/d9fcc272b6a08c3e3e5b7919040f0ab5f8952d65/flamegraph.pl# any version is finechmod+xflamegraph.pl
pythonrunmyscript.py|./flamegraph.pl--countnamebytes>profiles/flamegraph.svgInstallation troubleshootSome users might need to add some flags to thepipcommand, such as--useror--no-build-isolation.
You can also try to install by cloning this repo and install withpoetrydirectly.
If you still have issues or identified ones, don't hesitate to open an issue or a PR and ping me on it.FeedbacksI gladly take feedbacks you have regarding the API, the usefulness of the project or anything :)