Saravanan666/pypi-org huggingface dataset:
Package: a4
A4 – Minimal library for command-line applications.The name comes from A4 paper.  It provides absolutely minimal (but not lousy)
support for command-line applications.A4islisted on PyPI.Simple logginga4.logimplements minimal logging with three major features which, in my
highly opinionated opinion, should be included in all logging libraries:Levels.Colors.Timestamps.Yet another command-line application decoratora4.appprovides a decoratorRunnableto convert a class into a runnable
command-line application. All class methodsNOTstarting with understore
are recognized as sub-commands. This pattern offers more convenience over
single-function decorators when multiple commands require shared resources.importa4froma4.appimportAppBase,Runnable@RunnableclassMyApp(AppBase):def__init__(self):AppBase.__init__(self)defgen_calendar(self,args):"""<yyyy> mmdd-mmdd [mmdd-mmdd ...]Generate trading calendar for one year.-c  <cal_id>   calendar ID, default 86"""opts,args=a4.get_opts('c:',args)iflen(args)<2:self._die_usage()cal_id=int(opts['c']or'86')self._log(f'calendar id ={cal_id}')if__name__=='__main__':MyApp().run()
Package: a4pdf
A4PDFThis is a library for generating PDF files. It aims to be very low level.
It does not have its own document model, it merely exposes PDF primitives
directly.FeaturesFully color managed usingLittleCMS 2All fonts are embedded as subsetsNot implemented in CProvides a plain C API for easy integration into scripting languagesShips with actypesPython bindingMinimal dependenciesThings the library does not doReading PDF filesModifying PDF filesSupporting any other backend than PDFParsing any vector data files like SVGData conversions in general (apart from colorspaces)Supporting PDF versions earlier than 1.7API stability guaranteesUntil 1.0 there is no guarantee of any kind. Anything can be changed.
However we try not to change things without a good reason. Once 1.0
happens, we aim to provide the following:The plain C is both API and ABI stableThe internal C++ implementation "API" is not stable in any wayOnly C symbols are exported so in order to get to the C++ API you
have to change build settings. If you do that, there is no stability
guarantee.The Python API shall be stable as wellStatusThe basic functionality is there but it's not even close to feature
complete.
Package: a4t-sale-discount
sale_discountAdds the discount field to the sales lines.InstallingSee INSTALLSupportIf you encounter any problems with this module, please don't hesitate to ask
questions on the Adiczion support mail address :support@adiczion.netIf you encounter any problems with Tryton, please don't hesitate to ask
questions on the Tryton bug tracker, mailing list, wiki or IRC channel:http://bugs.tryton.org/http://groups.tryton.org/http://wiki.tryton.org/irc://irc.freenode.net/trytonLicenseSee LICENSECopyrightSee COPYRIGHTFor more information about us please visit the Adiczion web site:http://adiczion.comFor more information about Tryton please visit the Tryton web site:http://www.tryton.org/
Package: a4t-sale_tax_included
Sale Tax Included=================Adiczion's Tryton Module: sale_tax_included-------------------------------------------Adds the ability to Tryton to make sales and invoices with product withprice with tax included... warning::Replace the deprecated module : sale_b2bc.Installing----------See INSTALLSupport-------For more information or if you encounter any problems with this module,please contact the programmers atAdiczion--------website: http://www.adiczion.com/email: atm@adiczion.netIf you encounter any problems with Tryton, please don't hesitate to askquestions on the Tryton bug tracker, mailing list, wiki or IRC channel:http://bugs.tryton.org/http://groups.tryton.org/http://wiki.tryton.org/irc://irc.freenode.net/trytonLicense-------See LICENSECopyright---------See COPYRIGHTAdditional information----------------------For more information please visit the Tryton web site:http://www.tryton.org/
Package: a62-emotion
EmotionA model for emotion classification based on text and audio.AcknowledgementsHafed BenteftifaSoumaya ChaffarFeaturesGive audio and text as input and get back the dominant emotion.Usage/ExamplesBe sure to add double quotes to lines containing one or more commas for.csvfiles.For graphical interface, usehttps://a62-emotion.herokuapp.com/indexand upload.wavand.csvfiles.In[1]:importrequestsIn[2]:withopen("./data/raw_sample/audio/UlTJmndbGHM.wav","rb")asfd:...:response=requests.post("https://a62-emotion.herokuapp.com/predict",files={'files[]':fd})...:In[3]:response.json()Out[3]:{'predictions_audio':{'UlTJmndbGHM.wav':'positive'},'predictions_texte':{}}curl-F'files[]=@/home/user/emotion/data/raw_sample/audio/DatH-ra0VKY.wav'-F'files[]=@/home/user/file.csv'https://a62-emotion.herokuapp.com/predict{"predictions_audio":{"DatH-ra0VKY.wav":"positive"},"predictions_texte":{"file.csv":{"DAMON WILLIAMS: I am the Senior Vice President and Chief Education and Youth Development Officer for the Boys and Girls Clubs of America.":"neutral","In that role, I help to shape the education policy and youth development direction for more than 4,000 clubs that are part of our federated network, having an impact on more than 4 million young people across this nation.":"positive"}}}API ReferenceGet a prediction for file(s)POST /predictParameterTypeDescriptionfiles[]FileRequired. File(s) to processInstallationInstall emotion with pippipinstalla62-emotionEnvironment VariablesTo run this project, you will need to add the following environment variables to your .env fileGDRIVE_CREDENTIALS_DATAFLASK_SECRET_KEYSystem DependenciesFor audio, you will need to installlibsndfile1(andlibsndfile1-devon some systems)sudoapt-getinstalllibsndfile1Run LocallyBe sure to have python 3.8.13 as the python executablepython3--versionTo install Poetry, run:curl-sSLhttps://install.python-poetry.org|POETRY_VERSION=1.1.14python3---yes(Optional) To install the Heroku CLI, follow these stepshttps://devcenter.heroku.com/articles/heroku-cli#standalone-installation-with-a-tarballClone the projectgitclonehttps://github.com/philipgaudreau/emotionGo to the project directorycdemotionInstall dependencies (add flag--without-devif you do not want development dependencies)poetryinstallActivate the virtual environmentpoetryshellPull cloud data if needed (You will need to exportGDRIVE_CREDENTIALS_DATA)dvcpull[<.dvcfile>]Start using the command line interface (Not implemented yet)emotion--helpRunning TestsTo run tests, run the following command (development dependencies must be installed)pytesttestsDeploymentThis project is automatically deployed on Heroku when a PR is merged. To test locally, run (You will need to exportFLASK_SECRET_KEY)herokulocalTech StackCI:GitHub Actions, DVCCD:GitHub Actions, HerokuFrameworks:Scikit-learn, Tensorflow, FlaskVersionning:Poetry, SemVerCloud:G-Drive, GitHub, HerokuFeedbackIf you have any feedback, please reach out to one of us.Authors@philipgaudreau@guraymo@gtrottier🚀 About UsWe are on our way to finish a degree in Machine Learning.LicenseMIT
Package: a7585d
CAEN - Nuclear Instruments A7585A/NIPM12 Python Control LibraryThe NIPM-12 SiPM Power Module is a compact and integrated solution to provide stable and noiseless power supply for single and array / matrix SiPM detectors.
High resolution Output Voltage and Output Current measurements enable the NIPM-12 to be used for I-V detector characterization.
Digital (UART, I2C and USB with adapter) and analog control interface are runtime selectable by a single pin or a digital command.
The module integrates a temperature HV loop that regulates the SiPM output voltage as a programmable function of the SiPM temperature coefficient.This library is a python A7585A/NIPM12 module. It allows to control the module using the UART/USB interface.Features20-85V Output Voltage10mA Output Current1mV Output Voltage stepLess than 300uV rms noiseUser Selectable Digital / Analog output voltage controlAutomatic temperature feedback on the output voltageMulti device support using I2CFully working examples designed to control the module with keypad and display or monitor multiple devices using serial portModule compatible with ZEUS software for stand alone usagePinout of the modulePython installationIn order to install the A7585D python Library, just run the following command:pipinstalla7585dUsageModule user manualThe user manual can be downloaded from the CAEN website:https://www.caen.it/products/a7585/Import the libraryImport the library in your python script:froma7585d.a7585dimportA7585Dfroma7585d.a7585dimportA7585D_REGCreate the A7585D objectCreate the A7585D object and connect to the module serial port:hv=A7585D()# open serial porthv.open("COM3")# Windows# hv.open("/dev/ttyUSB0") # Linux USB# hv.open("/dev/ttyS0") # Linux UARTFull code exampleCreate the A7585D object and connect to the module serial port:froma7585d.a7585dimportA7585Dfroma7585d.a7585dimportA7585D_REGimporttimehv=A7585D()# open serial porthv.open("COM3")# Windows# hv.open("/dev/ttyUSB0") # Linux USB# hv.open("/dev/ttyS0") # Linux UART# configure parameters HV# set control output control loop mode# 0 Digital mode (output voltage is vtarget)# 1 Analog mode (output voltage is proportional to vref)# 2 Thermal compensation (output voltage is vtarget - Tcoef * (T - 25)hv.set_parameter(A7585D_REG.CNTRL_MODE,0)# set voltage target to 40Vhv.set_parameter(A7585D_REG.V_TARGET,40)# set max voltage 1mAhv.set_parameter(A7585D_REG.MAX_I,1)# set max voltage (compliance) to 50Vhv.set_parameter(A7585D_REG.MAX_V,50)# configure SiPM temperature compensation coefficienthv.set_parameter(A7585D_REG.T_COEF_SIPM,-35)# configure ramp speed to 5V/shv.set_parameter(A7585D_REG.RAMP,5)# set current monitor range# 0 low range# 1 high range# 2 auto selecthv.set_parameter(A7585D_REG.CURRENT_RANGE,2)# control pi controller (1 enable)hv.set_parameter(A7585D_REG.ENABLE_PI,0)# enable hvhv.set_parameter(A7585D_REG.HV_ENABLE,1)whileTrue:print("HV V_OUT: "+str(hv.get_parameter(A7585D_REG.MON_VOUT)))print("HV I_OUT: "+str(hv.get_parameter(A7585D_REG.MON_IOUT)))time.sleep(0.1)
Package: a7d
This module is an implementation of archiver for a7d8473 archive format.
It can archive directories, files, soft links, has shell interface.What is a7d8473?A7d8473 or simply a7d is a simple archive format, that has some nice features:If source directory has only text files, then archive will also be text file.Changing one line in the source file results in changing only one line in the archive.If all source files have line lenght limit, then archive will also have line lenght limit.Archived files are stored in compressor-friendly way:
all the contents of the source file are usually included in the final archive file unchanged.Metadata is saved in git-like manner. Thus only this metadata is saved:Executable flag.Link flag.There is a bijection between the set of archive files and the set of directory structures.Hello worldThis is "Hello, world!" file pushed into a7d8473 archive.a7d8473
:hello.txt/
Hello, world!
~ ~ ~Here is a little more complex archive:a7d8473
/name_of_directory/
:name_of_file.txt/
-> here is the content of file <-
~ ~ ~
!name_of_another_file_that_is_executable.py/
print('Hi')
~ ~ ~
@name_of_soft_link/
target_of_this_soft_link
~ ~ ~
@link_to_Hi.py/
./name_of_another_file_that_is_executable.py
~ ~ ~
/empty_directory/
\
\The first line of archive file is always "a7d8473".
Other lines describe archived files and directories.:beforehello.txtmeans, that filehello.txtis neither executable nor soft link.
There are other prefixes of file names:@denotes soft links.!denotes executable files./denotes directories.:denotes simple files, which are neither executable nor soft links./is also used as the end of the name because it is not a valid character in file names.\means end of directory, while~ ~ ~denotes end of file content.
Only printable ASCII characters are used outside of file contents.
Thus, archive files are text files as long as source files are text files.
Package: a7p
Table of ContentsDescriptionInstalationUsageGalleryDescriptionSimple python3 wrapper for .a7p files \InstalationAs common from PyPi:pipinstalla7por latest from repository:gitclonehttps://github.com/o-murphy/a7pcda7p_transfer_example/a7p_py
pythonsetup.pyinstallThis command builds the Docker image and tags it asgo-server.Usageimportloggingfroma7pimportA7PFile,A7PDataErrorfroma7p.factoryimportA7PFactory# open file in binary modewithopen('data/test.a7p','rb')asfp:# read data from filetry:profile_opj=A7PFile.load(fp)exceptA7PDataErrorasexc:# raises if md5 crc not matchlogging.error(exc)# accessing attributes as for default protobuf payloadprofile_name=profile_opj.profile.profile_name# data conversion to common typesas_json=A7PFile.to_json(profile_opj)as_dict=A7PFile.to_dict(profile_opj)from_json=A7PFile.from_json(profile_opj)from_dict=A7PFile.from_dict(profile_opj)# saving builded profilewithopen('data/test.a7p','rb')asfp:A7PFile.dump(profile_opj,fp)# creating a new a7p Payloadpayload=A7PFactory(meta=A7PFactory.Meta(name="test profile name",),bullet=A7PFactory.Bullet(weight=175,length=0.9),distances=A7PFactory.DistanceTable.LONG_RANGE)withopen('data/test.a7p','wb')asfp:A7PFile.dump(payload,fp)GalleryLatest updates available atJsDelivr CDN
Package: a816
a816Another 65c816 assemblerUsageCommand line$ a816 --help
usage: x816 [-h] [--verbose] [-o OUTPUT_FILE] [-f FORMAT] [-m MAPPING] [--copier-header] [--dump-symbols] [-D KEY=VALUE [KEY=VALUE ...]] input_file

x816 usage

positional arguments:
  input_file            The asm file to assemble.

options:
  -h, --help            show this help message and exit
  --verbose             Displays all log levels.
  -o OUTPUT_FILE, --output OUTPUT_FILE
                        Output file
  -f FORMAT             Output format
  -m MAPPING            Address Mapping
  --copier-header       Adds 0x200 address delta corresponding to copier header in ips writer.
  --dump-symbols        Dumps symbol table
  -D KEY=VALUE [KEY=VALUE ...], --defines KEY=VALUE [KEY=VALUE ...]
                        Defines symbols.or directly from python code:From python codefroma816.programimportProgramdefbuild_patch(input,output):program=Program()program.assemble_as_patch(input,output)program.resolver.dump_symbol_map()Supported SyntaxMemonicsadc, and, asl, bcc, bcs, beq, bit, bmi, bne, bpl, bra, brk, brl, bvc, bvs, clc, cld, cli, clv, cmp, cop, cpx, cpy, db, dec, dex, dey, eor, inc, inx, iny, jml, jmp, jsl, jsr, lda, ldx, ldy, lsr, mvn, mvp, nop, ora, pea, pei, per, pha, phb, phd, phk, php, phx, phy, pla, plb, pld, plp, plx, ply, rep, rol, ror, rti, rtl, rts, sbc, sec, sed, sei, sep, sta, stp, stx, sty, stz, tax, tay, tcd, tcs, tdc, trb, tsb, tsc, tsx, txa, txs, txy, tya, tyx, wai, xba, xceMacros; define a macro.macrotest(var_1,var_2){lda.wvar_1<<16+var_2}; use that macrotest(0x10,0x10); should expand that waylda.w0x10<<16+0x10; code generatedlda.w0x1010Code pointer relocation*=0x008000jsr.l_introScopessome_address=0x54{lda.bsome_addressbeqno_action; this label is only visible inside this scopeno_action:}Named scopes*=0x009000named_scope{addr=0x1234youhou_text:.text'youhou'.db0yaha_text:.text'yaha'.db0}*=0x019A52load_system_menu_text_pointer(named_scope.youhou_text)*=0x019A80load_system_menu_text_pointer(named_scope.yaha_text)
Package: a8a8a8a8a8a8a8a8a8a8a8a8a8a8a8
👉 Listen to any PDF book with just a few line of Python code👈InstallationInstall it frompypipipinstallaudiobookfromaudiobookimportAudioBookab=AudioBook("file_path")ab.text_to_speech()UsagesThe audiobook is a python module to listen to your fav pdf book.TestRun tests:pipinstall-rrequirements.txt
python-munittesttestsDocumentationRead DetailedDocumentation hereLinux installation requirementsIf you are on a linux system and if the voice output is not working , then :
Install espeak , ffmpeg and libespeak1 as shown below:sudoaptupdate&&sudoaptinstallespeakffmpeglibespeak1Roadmapspeech speed controlSupport more extensionssave the audiobook for futureProject statusAlphaAuthorModule : AudioBookAuthor  : py-contributorsLanguage : Python
Package: a8logging
python-loggingThe a8logging function is a utility for logging events in Python projects. It provides a consistent and flexible way to log successes, errors, and other events, and supports multiple output options such as logging to a file or pushing the logs to Elasticsearch.FeaturesLogs events with the following fields: message, function name, project name, version, and status (success or error).Optionally logs error tracebacks in case of errors.Supports logging to a file, with the option to specify the file name and log rotation settings.Supports logging to Elasticsearch, with the option to specify the Elasticsearch host and port, and other connection settings.Provides a generalized function that can be easily integrated into any Python project.InstallationTo install the log_event function, you will need to install the following dependencies:logging: A built-in Python library for logging events.traceback: A built-in Python library for printing stack traces in case of errors.uuid: A built-in Python library for generating unique IDs.elasticsearch: A third-party library for pushing logs to Elasticsearch.You can install these dependencies by running the following command:pipinstall-rrequirements.txtUsageTo use the log_event function, you will need to import it into your Python code and call it with the appropriate arguments.
Here is an example of how to log a success event:froma8loggingimporta8logginga8logging('success',"Test message",function_name='test_function',project_name='test_project',version='1.0.0')This will log a success event with the message 'Test message', the function name 'test_function', the project name 'test_project', and the version '1.0.0'.
To log an error event, you can pass the error argument with an Exception object:froma8loggingimporta8loggingtry:# Some code that may throw an exceptionraiseException('Test error')exceptExceptionase:a8logging('error',"Test error",function_name='test_function',error=e,project_name='test_project',version='1.0.0')This will log an error event with the message 'Test error', the function name 'test_function', the project name 'test_project', and the version '1.0.0'. The error traceback will also be logged.To log to a file, you can pass the save_to_file argument with a value of True and the file_name argument with the desired file name:froma8loggingimporta8logginga8logging('success',"Test message",function_name='test_function',project_name='test_project',version='1.0.0',save_to_file=True,file_name='test.txt')This will log the event to the file 'test.txt'.
Package: a8mailer
python-mailera8mailer is a package for sending emails using Outlook and SMTP.InstallationTo install a8mailer, run the following command:pipinstalla8mailerUsageTo use Mailer, import the a8mailer function and call it with the required arguments:froma8mailerimporta8mailer# Send an email to one recipienta8mailer('sender@email.com','password',['recipient@email.com'],'Subject','Body')# Send an email to multiple recipientsa8mailer('sender@email.com','password',['recipient1@email.com','recipient2@email.com'],'Subject','Body')# Send an email with CC and BCC recipientsa8mailer('sender@email.com','password',['recipient1@email.com','recipient2@email.com'],'Subject','Body',cc_list=['cc1@email.com','cc2@email.com'],bcc_list=['bcc1@email.com','bcc2@email.com'])The a8mailer function has the following parameters:luser (str): sender emaillpass (str): sender passwordto_list (required): List of email addresses to send the email to.subject (required): Subject of the email.body (required): Body of the email.cc_list (optional): List of email addresses to CC the email to.bcc_list (optional): List of email addresses to BCC the email to.LicenseMailer is licensed under the MIT License. See the LICENSE file for more details.
Package: a9s
a9sCli tool for easily navigating in AWS services.Highly inspired fromk9s.How to installpipinstalla9sDocker builddockerbuild.-ta9s
dockerrun-v~/.aws/:/root/.aws-it--rma9sRunning docker from clouddockerrun-v~/.aws/:/root/.aws-it--rmghcr.io/iamshobe/a9sHow to developRunning mock serverInstall poetry env:poetryinstallStart dev server:poetryrunmoto_server-p54321Run mock data:poetryrunpython-mmocked_env.mainRunning mock server with docker-composedocker-compose-fmocked_env/docker-compose.yamlup--buildRunning a9s in with mocked serverRun a9s in local mode (connects to mock server on port 54321):LOCAL=truepoetryruna9sGoalsServicess3 supportroute53 supportEC2 supportELB supportCloudfront supportFeaturesresponsive tablesallow to easily switch between servicesauto-complete commandsvim shortcuts supportopening files in S3quick yanksmart navigation between services - route53 pointing to ELB etc..
Package: aa2unicode
aa2unicodeConvert ASCII Artwork to unicode box charactersInput:% cat ip.txt
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Version|  IHL  |Type of Service|          Total Length         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         Identification        |Flags|     Fragment Offset     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  Time to Live |    Protocol   |        Header Checksum        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         Source Address                        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                      Destination Address                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                    Options                    |    Padding    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Output:% aa2unicode ip.txt
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
┌───────┬───────┬───────────────┬───────────────────────────────┐
│Version│  IHL  │Type of Service│          Total Length         │
├───────┴───────┴───────────────┼─────┬─────────────────────────┤
│         Identification        │Flags│     Fragment Offset     │
├───────────────┬───────────────┼─────┴─────────────────────────┤
│  Time to Live │    Protocol   │        Header Checksum        │
├───────────────┴───────────────┴───────────────────────────────┤
│                         Source Address                        │
├───────────────────────────────────────────────────────────────┤
│                      Destination Address                      │
├───────────────────────────────────────────────┬───────────────┤
│                    Options                    │    Padding    │
└───────────────────────────────────────────────┴───────────────┘