Saravanan666/pypi-org huggingface dataset:
Package: adeqt
Console plugin for Python Qt applicationsAdeqt gives you a Python shell inside your Qt applications using PyQt or PySide.
You can use this for simple debugging or as a 'power user' feature.How to useInstall the adeqt package:pip install adeqt.If you don't want to add any dependencies, you can copyadeqt.pyinto your own
project instead. You might also want to change the imports to use your chosen
Python Qt package directly (it normally uses theQtPycompatibility layer).Connect up a menu entry or a keyboard shortcut to open the Adeqt window like
this:fromPyQt5.QtCoreimportQtfromPyQt5.QtGuiimportQKeySequencefromPyQt5.QtWidgetsimportQAction,QMainWindow,QShortcutclassMainWindow(QMainWindow):def__init__(self,parent=None):super().__init__(parent)# ... Other application setup ...# Menu entryadeqt_action=QAction("Python console",self)adeqt_action.triggered.connect(self.show_adeqt)some_menu.addAction(adeqt_action)# Keyboard shortcut (here F12)adeqt_shortcut=QShortcut(QKeySequence(Qt.Key_F12),self)adeqt_shortcut.activated.connect(self.show_adeqt)adeqt_window=Nonedefshow_adeqt(self):# Change to 'from .adeqt ...' if you copy adeqt into your applicationfromadeqtimportAdeqtWindowifself.adeqt_windowisNone:self.adeqt_window=AdeqtWindow({'window':self},parent=self)self.adeqt_window.show()The dictionary you pass toAdeqtWindowdefines variables that will be
available in the console. This will normally have at least the main
window/application object, and any other objects you want convenient access to.When using the console window:Ctrl-Enter executes the existing codeTab shows available completionsCtrl-W closes the console windowDesign & limitationsAdeqt is deliberatelysimple, providing a basic console experience. It's
meant to be easy to copy into your project and easy to modify as required.Itdoesn't protect anything from malicious users. Users running a Python
application can probably do anything anyway, but Adeqt makes it very easy.
If you need to restrict what users can do, think about security at other levels.User code runs in the main thread. This makes it easy to safely call Qt
methods, but if you run something slow from the console, the GUI locks up until
it finishes.AlternativesTheJupyter Qt Consolecan beembedded
in an application.
This is a much more featureful console - with rich output, syntax highlighting,
better tab completions, etc. - but it's designed to run code in a separate
'kernel' process. Running the code in the same process as the console
('inprocess') is possible, but not well supported. It also needs quite a few
dependencies.Debuggers can pause your code during execution and give you a place to run
commands and explore the stack. Some modern debuggers can also 'attach' to a
process which wasn't started in a debugger. A good debugger is strictly more
powerful than Adeqt, but that power also makes it trickier to use.
Package: adeso
A.D.E.S.O.Application forDecryption,Encryption andSteganographicOperationsSummary:Steganographyis the practice of concealing information within another message to avoid detection.Encryptionis the process of converting plaintext into ciphertext, which is unreadable.This application provides both of these functionalities.  Users can first encrypt their data, via
  a password using an AES-128 algorithm in CBC mode.Then, users can hide the encrypted data (ciphertext)
  within an image of their choice via steganography.Key Features:A web interface is provided to paste large plaintext objects without a terminal buffer limit.All encryption, decryption, encoding and decoding is done in memory.Tools Used:Front end:SvelteusingSvelteKitAPI:Python 3.11.1usingFlask 2.3.2Cryptography:cryptography 41.0.1Steganography usingLSBGotchas:Large ciphertext and images can result in API lag or lockups for steganography.The decode operation is done on the file selected, not the image displayed on the UI.Links:DocumentationPyPi ProductionPyPi TestInstallation:pip install adeso
Package: adext
adextadextis a small package that extendsalarmdecoderto include some additional methods forHome Assistant.Specifically, the following methods have been added:arm_homearm_awayarm_nightEach method accepts the arguments described below to determine which key sequences are used to arm a panel based on factors like panel brand and user config settings.Arguments:code: (Noneorstr) - the code used to arm a panel (i.e.'1234')auto_bypass: (bool) - for Honeywell only. set toTrueto prefix an arming sequence with<code> + 6#in order to automatically bypass any faulted zones. This will require a code to be entered even ifcode_arm_requiredis set tofalse."code_arm_required: (bool) - set toFalseto enable arming without a code. seeArming Key Sequencesbelow.alt_night_mode: (bool) - For Honeywell systems, set totrueto enableNight-Staymode instead ofInstantmode for night arming. For DSC systems, set totrueto enableNo-Entrymode instead ofStaymode for night arming. For both systems, whenever this option is set totrue, a code will be required for night armingregardless of thecode_arm_requiredsetting.SeeArming Key Sequencessection below for more information.Arming Key SequencesThe tables below show the key press sequences used for arming for the different panel brands and configuration setting combinations.Honeywellcode_arm_required = true (default)ModeKey Sequencealarm_arm_homecode+3alarm_arm_awaycode+2alarm_arm_night(alt_night_mode=false, default)code+7alarm_arm_night(alt_night_mode=true)code+33code_arm_required = falseModeKey Sequencealarm_arm_home#3alarm_arm_away#2alarm_arm_night(alt_night_mode=false, default)#7alarm_arm_night(alt_night_mode=true)code+33DSCcode_arm_required = true (default)ModeKey Sequencealarm_arm_homecodealarm_arm_awaycodealarm_arm_night(alt_night_mode=false, default)codealarm_arm_night(alt_night_mode=true)*9+codecode_arm_required = falseThechr(4)andchr(5)sequences below are equivalent to pressing theStayandAwaykeypad keys respectively (as outlined in theAlarmDecoder documentation).ModeKey Sequencealarm_arm_homechr(4)+chr(4)+chr(4)alarm_arm_awaychr(5)+chr(5)+chr(5)alarm_arm_night(alt_night_mode=false, default)chr(4)+chr(4)+chr(4)alarm_arm_night(alt_night_mode=true)*9+code
Package: adf2dms
adf2dmsConvert Amiga disk images from ADF to DMS (DiskMasher) formatNote: Experimental softwareThis code is experiental and currently only implements the uncompressed
("NOCOMP") and RLE ("SIMPLE") compression modes.Usage$ python3 -m adf2dms --help
usage: adf2dms [-h] [-0] [-a FILE] [-b FILE] [-f] [-o file.dms] [-s TRKNUM] [-e TRKNUM | -n COUNT] file.adf

Convert an ADF file to DMS (DiskMasher) format

positional arguments:
  file.adf              ADF file to read

optional arguments:
  -h, --help            show this help message and exit
  -0, --store           store tracks uncompressed
  -a FILE, --fileid FILE
                        attach FILE_ID.DIZ file
  -b FILE, --banner FILE
                        attach banner file
  -f, --force-overwrite
                        overwrite output file if it already exists
  -o file.dms, --output file.dms
                        DMS file to create instead of stdout
  -s TRKNUM, --low-track TRKNUM
                        first track, default: 0
  -e TRKNUM, --high-track TRKNUM
                        last track, default: determined by file length
  -n COUNT, --num-tracks COUNT
                        number of tracks to add, default: determined by file length

Input files ending in .adz or .gz will automatically be un-gzipped.Building adf2dmsgit clone https://github.com/dlitz/adf2dms
python3 -m build adf2dms
Package: adf2pdf
adf2pdf - a tool that turns a batch of paper pages into a PDF
with a text layer.  By default, it detects empty pages (as they
may easily occur during duplex scanning) and excludes them from
the OCR and the resulting PDF.For that, it usesSane'sscanimagefor the scanning,Tesseractfor theoptical character recognition(OCR), and
the Python packagesimg2pdf,Pillow (PIL)andPyPDF2for some image-processing tasks and PDF mangling.Example:$ adf2pdf contract-xyz.pdf2017, Georg Sauthoffmail@gms.tfFeaturesAutomatic document feed (ADF) supportFast empty page detectionOverlaying of scanning, image processing, OCR and PDF creation
to minimize the total runtimeFast creation of small PDFs using the fineimg2pdfpackageOnly use of safe compression methods, i.e. no error-prone
symbol segmentation style compression likeJBIG2or JB2
that is used inXerox photocopiersand the DjVu format.Install InstructionsAdf2pdf can be directly installed withpip, e.g.$ pip3 install --user adf2pdfor$ pip3 install adf2pdfSee also thePyPI adf2pdf project page.Alternatively, the Python fileadf2pdf.pycan be directly
executed in a cloned repository, e.g.:$ ./adf2pdf.py report.pdfIn addition to that, one can install the development version from
a cloned work-tree like this:$ pip3 install --user .Hardware RequirementsA scanner with automatic document feed (ADF) that is supported by
Sane. For example, theFujitsu ScanSnap S1500works
well. That model supports duplex scanning, which is quite
convenient.Example continuedRunningadf2pdffor a 7 page example document takes 150 seconds
on an i7-6600U (Intel Skylake, 4 cores) CPU (using the ADF of the
Fujitsu ScanSnap S1500). With the defaults,adf2pdfcallsscanimagefor duplex scanning into 600 dpi lineart (black and
white) images. In this example, 6 pages are empty and thus
automatically excluded, i.e. the resulting PDF then just contains
8 pages.The resulting PDF contains a text layer from the OCR such that
one can search and copy'n'paste some text. It is 1.1 MiB big,
i.e. a page is stored in 132 KiB, on average.Software RequirementsThe script assumes Tesseract version 4, by default. Version 3 can
be used as well, but thenew neural network system in Tesseract
4just performs magnitudes better than the old OCR model.
Tesseract 4.0.0 was released in late 2018, thus, distributions
released in that time frame may still just include version 3 in
their repositories (e.g. Fedora 29 while Fedora 30 features version
4). Since version 4 is so much better at OCR I can't recommend it
enough over the stable version 3.Tesseract 4 notes (in case you need to build it from the sources):Build instructions- warning: if you miss theautoconf-archivedependency you'll get weird autoconf error
messagesData files- you need the training data for your
languages of choice and the OSD dataPython packages:img2pdf(Fedora package: python3-img2pdf)Pillow (PIL)(Fedora package: python3-pillow-devel)PyPDF2(Fedora package: python3-PyPDF2)
Package: adfluo
adfluoadfluo, adfluis, adfluere, adfluxi, adfluxumto flow on/to/towards/byto glide/drift quietlyadfluois a Python library for pipeline-oriented feature computation, mainly aimed at tricky
multimodal datasets that might require a wide range of different features to be computed from.Adfluo makes your feature extraction code:clean: it encourages you to outline clearly the steps needed to compute
a feature as a pipeline of atomic stepsdata scientist-friendly:adfluo's output has a predictable structure,
ensuring that once you've run the feature extraction, you'll be able to focus a 100%
on your data-science/statistics work.efficient: if different features have computation steps in common,adfluowill do its best to compute only what is necessary, without any extra configuration.reusable: By separating the input data from the feature computation logic,
you'll easily be able to reuse an existing extraction pipeline on another dataset,
or use another extraction pipeline on the same dataset.sample-oriented:adfluoorganizes its processing around samples of data.InstallationAdfluo is available on Pypi, and has no special dependencies, a simplepipinstalladfluowill do.Exampleimportrandom# Defining our dataset as a list of dictsmy_dataset=[{"numbers":[random.randint(1,20)forjinrange(50)],"idx":i}foriinrange(20)]# TODO: examples#  - mean, std dev of numbers#  - "relative" mean using idx
Package: adfly-api
Adfly APIUnofficial Adfly API Python WrapperInstallationpip install adfly-apiExamples#ImportfromadflyimportAdflyApi#Initializeapi=AdflyApi(user_id=12345678,public_key='xxxxxxxxxx',secret_key='xxxxxxxxxx',)# Url Groups examples.api.get_groups()# Expand examples.api.expand(['http://adf.ly/D','http://adf.ly/E','http://q.gs/4'],[3,'1A','1C'])api.expand(None,'1F')# Shorten examples.api.shorten(['http://docs.python.org/library/json.html','https://github.com/benosteen'],)api.shorten('http://docs.python.org/library/json.html')# Urls examples.api.get_urls()api.get_urls(search_str='htmlbook')api.update_url(136,advert_type='int',group_id=None)api.update_url(136,title='一些中国',fb_description='fb о+писан  и+е',fb_image='123')api.delete_url(136)CreditsOriginally developed byBen O'Steen
Package: adfmapping
adfmappingADF Dynamic mapping of Source Data/columns to Sink Columns.Pre-requisitesBoth tech and non-tech audiences can use it with a lil bit of guidance.Python 3+ installedon your machineUsageGet Csv file from your Azure Application Insights or Log Analytics workspaceInstall the packagepip install adfmappingRun the below command to generate mapping JSON.adfmapping Mapping --csvfile C:\user\appIn.csv
Package: adfpy
🏭🍰 adfPyadfPy aims to make developers lives easier by wrapping the Azure Data Factory Python SDK with an intuitive, powerful, and easy to use API that hopefully will remind people of working with Apache Airflow ;-).InstallpipinstalladfpyUsageGenerally, using adfPy has 2 main components:Write your pipeline.Deploy your pipeline.adfPy has an opinionated syntax, which is heavily influenced by Airflow. For documentation on what the syntax looks like, please read the docshere.
Some examples are provided in the examples directory of this repository.Once you've written your pipelines, it's time to deploy them! For this, you can use adfPy's deployment script:pipinstalladfpy
adfpy-deploy--path<your_path_here>Note:This script will ensure all pipelines in the provided path are present in your target ADF.This script will alsoremoveany ADF pipelines that arenotin your path, but are in ADF.Still to comeadfPy is still in development. As such, some ADF components are not yet supported:DatasetsLinked servicesTriggers (support for Schedule Triggers is available, but not for Tumbling Window, Custom Event, or Storage Event)Developer setupadfPy is built withPoetry. To setup a development environment run:poetryinstall
Package: adfs-aws-login
Log in to AWS using ADFSThe aim for this is to create a general purpose CLI ADFS login with a limited set of trusted dependencies.InstallationIt'savailable on PyPI. Install by runningpip install adfs-aws-login.RunThe executable is calledadfs-aws-login. Log in with default profile by simply runningadfs-aws-loginor specify a profile withadfs-aws-login --profile [profile].Seeadfs-aws-login -hfor more options.If the environment variableADFS_DEFAULT_PASSWORDis defined, that will be used as the password.ConfigureConfigure the profiles in$HOME/.aws/config. Following is an example with all supported configuration keys (and a few aws default ones):[profile example]
region=us-east-1
output=json
adfs_login_url=https://login.example.com/adfs/ls/IdpInitiatedSignOn.aspx?loginToRp=urn:amazon:webservices
adfs_default_username=test.user@example.com
adfs_role_arn=arn:aws:iam::1234567890:role/DeployRole
adfs_session_duration=8
Package: adfsmail
Библиотека AdfsMailОбзорAdfsMail — это библиотека Python для взаимодействия с электронными почтовыми сервисами, предоставляющая простой способ доступа и управления электронной почтой внутри VPN или извне с использованием многофакторной аутентификации (MFA). Библиотека поддерживает базовые операции с электронной почтой, такие как получение писем, доступ к метаданным писем и работа с вложениями.УстановкаПеред установкой AdfsMail убедитесь, что на вашей системе установлен Python. Установить AdfsMail можно с помощью pip:pip install adfsmailИспользованиеВнутри VPNДля использования AdfsMail внутри VPN инициализируйте класс AdfsMail с вашим адресом электронной почты, паролем и доменом.from adfsmail import AdfsMail

mail = AdfsMail(
    'user@domain.ru',
    'password',  # Замените на ваш реальный пароль
    'domain.ru'
)Вне VPN с использованием многофакторной аутентификацииПри доступе к почтовому сервису извне VPN используйте AdfsMailMFA для обработки многофакторной аутентификации.from adfsmail import AdfsMailMFA

mail = AdfsMailMFA(
    'user@domain.ru',
    'password',  # Замените на ваш реальный пароль
    'domain.ru'
)Получение писемПолучение первых 25 писем:m = mail.get_mail()Чтобы получить следующие 30 писем, укажите параметры offset (пропустить первые 25) и max_return (получить 30 сообщений):m2 = mail.get_mail(offset=25, max_return=30)Операции с письмамиВы можете выполнять различные операции с полученными письмами, такие как получение информации об отправителе, получателях, теме, теле письма, дате и времени, а также работать с вложениями.Получить информацию об отправителе# m[0] - первое письмо из списка
sender = m[0].get_from()Получить информацию о получателяхrecipients = m[0].get_to()Получить тему письмаsubject = m[0].get_subject()Получить тело письмаbody = m[0].get_body()  # Обычно htmlПолучить дату и время получения письмаdatetime_received = m[0].get_datetime()Получить вложенияattachments = m[0].get_attachments()Получить имя файла вложения# m[0].get_attachments()[0] - первое вложение письма
attachment_filename = m[0].get_attachments()[0].get_filename()Сохранить вложение в указанный путьm[0].get_attachments()[0].save('path/to/save/file.xl')Получить количество вложенийattachments_count = m[0].get_attachments_count()Справочник APIВ классах AdfsMail и AdfsMailMFA доступны следующие методы:get_mail(offset=0, max_return=25): Получает список писем, начиная с указанного offset и до max_return числа писем.get_from(): Возвращает отправителя письма.get_to(): Возвращает список получателей письма.get_subject(): Возвращает тему письма.get_body(): Возвращает тело письма.get_datetime(): Возвращает дату и время получения письма.get_attachments(): Возвращает список вложений в письме.get_attachments_count(): Возвращает количество вложений в письме.Каждый объект вложения имеет следующие методы:get_filename(): Возвращает имя файла вложения.save(save_path): Сохраняет вложение по указанному пути.
Package: adg
ADG is a tool generating diagrams and producing their expressions for given many-body formalisms. Diagrammatic rules from the formalism are combined with graph theory objects to produce diagrams and expressions in a fast, simple and error-safe way.The only input consists in the theory and order of interest, and the N-body character of the operators of interest. The main output is a LaTeX file containing the diagrams, their associated expressions and additional informations that can be compiled by ADG if needed. Other computer-readable files may be produced as well.
Package: adgmaker
# ADGMakerAutomatically create and install hundreds of awesome Free (as in
Freedom!) Ableton Live Instuments from the super high-qualityPhilharmonia
Orchestrasamples.InstallationADGMaker requires that you have Python, OSX, and Ableton Live installed
already. Then, simply:$ pip install adgmakerAutomatic UsageThe simplest way to use ADGMaker is with the ‘–all’ and ‘–install’
arguments, which will fetch the instrument archives from the internet,
create ADGs, and install them into your Ableton installation
automatically:$ adgmaker --all --installThen go to File -> Manage Files -> Manage User Library and use your new
instruments! You’ll see them under the “Drums” tab. Tada!Manual UsageDownload an instrument fromthe Philharmonia Orchestra
websiteand unzip it.Then, (from a virtualenv), run:python adgmaker.py double_bass/Then copy all of the .adg files to:~/Music/Ableton/User\ Library/Presets/Instruments/Drum\ Rack/(or wherever your Ableton is installed).Then copy all of the mp3s to:~/Music/Ableton/User\ Library/Samples/ImportedThen go to File -> Manage Files -> Manage User Library and use your new
instruments!CaveatsSome of the ADGs only have a few items in them, but most instruments
have at least a few ADG files that have a couple of complete scales. All
of the percussion instruments have been combined into a single
percussion ADG.Some of the samples have a slight delay, so you might have to manually
set the sample start time to your liking. I also like to add a little
bit of fade out, reverb, and put them all into the same choke group,
depending on the sound I want.TODOSupport other sound archives?Support making multi-instrument racks?Tests / CI!Enjoy!
Package: adguard-sync
AdguardSyncThis script syncs the DNS-Rewrite list with the given config file.Example:>>>fromadguard_syncimportAdguardSync>>>AdguardSync('config.yml')Configuration File:---adguards:-hostname:https://10.0.0.3username:adguardpassword:adguard_passverify_ssl:False# (Optional, default = True)-hostname:https://10.0.0.4username:adguardpassword:adguard_passdns_records:-domain:adguard.testaddress:10.0.0.3-domain:adguard2.testaddress:10.0.0.4
Package: adhan
adhan.py is a Python 2.7 and 3+ library for computing adhan times.It is a refactoring of the PrayTimes.org Python adhan calculator that will ensure:PEP8 compliant codeA PyPI packageA simplified API that favors convention over configurationA test suitePresence on GitHub to encourage contributionInstallationpipinstalladhanUsagefromdatetimeimportdatefromadhanimportadhanfromadhan.methodsimportISNA,ASR_STANDARDparams={}params.update(ISNA)params.update(ASR_STANDARD)adhan_times=adhan(day=date.today(),location=(30.25,-97.75),parameters=params,timezone_offset=-6,)"""
adhan_times will be a dict containing datetime objects for the keys 'fajr',
'shuruq', 'zuhr', 'asr', 'maghrib', and 'isha'

"""Available MethodsThe following methods are available in the adhan.methods module and should cover
the vast majority of casesISNA: Islamic Society of North AmericaMUSLIM_WORLD_LEAGUE: Muslim World LeagueEGYPT: Egyptian General Authority of SurveyMAKKAH: Umm al-Qura University, MakkahKARACHI: University of Islamic Sciences, KarachiTEHRAN: Institude of Geophysics, University of TehranSHIA: Shia Ithna Ashari, Leva Research Institute, QumASR_STANDARD: Shafi’i, Maliki, Ja’fari, and HanbaliASR_HANAFI: HanafiCustom Parameter DictionaryIn case you want to define your own parameters, the parameters argument accepts
dicts with the following keysfajr_angle: The angle below sunrise to compute Fajr forisha_angle: The angle below sunset to compute Isha forasr_multiplier: The multiplier to use for Asr, such that the length of
an object’s shadow is the multiplier * the object’s length + the length of the
object’s shadow at middayisha_delay: The floating point number of hours after Maghrib that Isha is
Package: adhan-pi
Developing>>>sudodnfinstallffmpeg# install ffmpeg on your system (if not installed)>>>sudoln-s~/adhan-pi/opt/adhan-pi>>>python3-mvenv/opt/adhan-pi/env>>>source/opt/adhan-pi/env/bin/activate>>>cd/opt/adhan-pi>>>pipinstall-e'.[dev]'>>>tox-elint&&toxSetting up Cron env>>> source /opt/adhan-pi/env/bin/activate
>>> pip install -e '.[cron]'Setting up CronAdd this to your cronjob (with your user) (crontab -e)@daily /opt/adhan-pi/env/bin/schedule_prayer_cron –query “New York, NY” –user salahset up crons manually>>> source /opt/adhan-pi/env/bin/activate
>>> /opt/adhan-pi/env/bin/schedule_prayer_cron --query "New York, NY" --user salah