Saravanan666/pypi-org huggingface dataset:
Package: awz
How to import the Rubik's libraryfromAwzimportMessenger

Or

fromAwzimportRobot_RubikaHow to import the Robino classfromAwzimportRobinoHow to import the anti-advertising classfromAwz.ZedcontentimportAntiadvertisementHow to install the librarypipinstallawz==1.2.1An example:fromAwzimportMessengerbot=Messenger("Your Auth Account")gap="your guid or gap or pv or channel"bot.sendMessage(gap,"libraryawz")And Or:fromAwzimportMessengerbot=Robot_Rubika("Your Auth Account")gap="your guid or gap or pv or channel"bot.sendMessage(gap,"awz")
Package: ax253
ax253ax253(pronounced Ay-Ex-twenty-five-three) is an experimental ax25 stack written in
python.Full DocumentationDocumentation is generated by Sphinx from docstrings and content in thedocsubdirectory and hosted ongithub pagesSourceGithub:https://github.com/python-aprs/ax253AuthorMasen Furer KF7HVMkf7hvm@0x26.netBased on work byGreg Albrecht W2GMDoss@undef.netand contributorshttps://github.com/ampledata/kisshttps://github.com/ampledata/aprshttp://ampledata.org/CopyrightCopyright 2022 Masen Furer and ContributorsCopyright 2017 Greg Albrecht and ContributorsAutomatic Packet Reporting System (APRS)is Copyright Bob Bruninga WB4APRwb4apr@amsat.orgfcs.py- Copyright (c) 2013 Christopher H. Casebeer. All rights reserved.LicenseApache License, Version 2.0. SeeLICENSEfor details.
Package: ax3-redactor
AX3 RedactorThis app is part of the AX3 technology developed by Axiacore.It will allow to use redactor inside the django admin interface.Quick startAdd "redactor" to your INSTALLED_APPS setting like this:INSTALLED_APPS=[...'redactor',]Include the redactor URLconf in your project urls.py like this:path('',include('redactor.urls')),Runpython manage.py migrateto create the redactor models.Copy this redactor library files into astaticfolder in your proyect:vendor/redactor/redactor.min.cssvendor/redactor/redactor.min.jsvendor/redactor/plugins/imagemanager.min.jsvendor/redactor/plugins/video.min.jsvendor/redactor/plugins/widget.min.jsAdd to the admin.py the redactor support for a given model:fromdjango.contribimportadminfromredactor.mixinsimportRedactorMixinfrom.modelsimportPost@admin.register(Post)classPostAdmin(RedactorMixin,admin.ModelAdmin):...redactor_fields=['content']...contentis aTextFieldattribute at thePostmodel.
You can use multiple fields.Releasing a new versionMake sure you have an API Token for PyPI:https://pypi.org/help/#apitokenMake sure you increase the version number and create a git tag:$python3-mpipinstall--user--upgradesetuptoolswheeltwine
$./release.shMade byAxiacore.
Package: ax56
A Python client for A(x56)'s URL lengthenerInteract with A(x56)'s URL lengthener in PythonInstallationFrom PyPi:python -m pip install ax56From GitHubpython -m pip install git+https://github.com/nwithan8/ax56.gitUsageCan get a lengthened URL for any input URLImport theax56package
Example:importax56link=ax56.link("https://google.com")
Package: axado.django-localflavor-br
Country-specific Django helpers for Brazil.What’s in the Brazil localflavor?forms.BRPhoneNumberField: A form field that validates input as a Brazilian
phone number, with the format XX-XXXX-XXXX.forms.BRZipCodeField: A form field that validates input as a Brazilian zip
code, with the format XXXXX-XXX.forms.BRStateSelect: ASelectwidget that uses a list of Brazilian
states/territories as its choices.forms.BRCPFField: A form field that validates input asBrazilian CPF.
Input can either be of the format XXX.XXX.XXX-VD or be a group of 11 digits.forms.BRCNPJField: A form field that validates input asBrazilian CNPJ.
Input can either be of the format XX.XXX.XXX/XXXX-XX or be a group of 14
digits.See the source code for full details.About localflavorsDjango’s “localflavor” packages offer additional functionality for particular
countries or cultures.For example, these might include form fields for your country’s postal codes,
phone number formats or government ID numbers.This code used to live in Django proper – in django.contrib.localflavor – but
was separated into standalone packages in Django 1.5 to keep the framework’s
core clean.For a full list of available localflavors, seehttps://github.com/django/
Package: axado.pyjade
PyJade is a high performance port of Jade-lang for python, that converts any .jade source to the each Template-language (Django, Jinja2, Mako or Tornado).UTILITIESTo simply output the conversion to your console:pyjade [-c django|jinja|mako|tornado] input.jade [output.html]INSTALLATIONFirst, you must do:pip install pyjadeOr:python setup.py installNow simplyname your templates with a `.jade` extensionand this jade compiler
will do the rest.  Any templates with other extensions will not be compiled
with the pyjade compiler.DjangoInsettings.py, add aloadertoTEMPLATESlike so:TEMPLATES=[{'BACKEND':'django.template.backends.django.DjangoTemplates','DIRS':[],'OPTIONS':{'context_processors':['django.template.context_processors.debug','django.template.context_processors.request','django.contrib.auth.context_processors.auth','django.contrib.messages.context_processors.messages','django.core.context_processors.request'],'loaders':[# PyJade part:   ##############################('pyjade.ext.django.Loader',('django.template.loaders.filesystem.Loader','django.template.loaders.app_directories.Loader',))],'builtins':['pyjade.ext.django.templatetags'],# Remove this line for Django 1.8},},]Jinja2Just addpyjade.ext.jinja.PyJadeExtensionas extensionjinja_env=Environment(extensions=['pyjade.ext.jinja.PyJadeExtension'])MakoJust addpyjade.ext.mako.preprocessoras preprocessorfrompyjade.ext.makoimportpreprocessorasmako_preprocessormako.template.Template(haml_source,preprocessor=mako_preprocessor)FlaskJust addpyjade.ext.jinja.PyJadeExtensionas extension to the environment of the appapp.jinja_env.add_extension('pyjade.ext.jinja.PyJadeExtension')PyramidAdjust your “your_project/__init__.py” and add the following line somewhere to in the main() functionconfig.include('pyjade.ext.pyramid')Tornado TemplatesAppend this after importing tornado.templatefromtornadoimporttemplatefrompyjade.ext.tornadoimportpatch_tornadopatch_tornado()(...)SyntaxExactly the same as the Jade Node.js module (except of cases, which are not implemented)https://github.com/visionmedia/jade/blob/master/README.mdExampleThis code!!! 5html(lang="en")headtitle=pageTitlescript(type='text/javascript')if(foo) {bar()}bodyh1.titleJade - node template engine#containerifyouAreUsingJadepYou are amazingelsepGet on it!Converts to<!DOCTYPE html><htmllang="en"><head><title>{{pageTitle}}</title><scripttype='text/javascript'>if(foo){bar()}</script></head><body><h1class="title">Jade - node template engine</h1><divid="container">{%if youAreUsingJade%}<p>You are amazing</p>{%else%}<p>Get on it!</p>{%endif%}</div></body></html>Register filtersIf you want to register a function as a filter, you only have to
decorate the function withpyjade.register_filter("filter_name")importpyjade@pyjade.register_filter('capitalize')defcapitalize(text,ast):returntext.capitalize()TESTINGYou must havenosepackage installed.
You can do the tests with:./test.shTODOs and BUGSSee:http://github.com/syrusakbary/pyjade/issues
Package: axaremote
Python library to control AXA Remote window openers.Python library to control AXA Remote window openers over the serial
interface or serial to network bridges likeesp-link.HardwareIf you power the AXA Remote using batteries you can connect the Serial 3.3 or
5 Volts to position 1 or 6 of the RJ25 connector, ground to position 2 or 5 of
the RJ25 connector and RX/TX to position 3 or 4.If you power the AXA Remote with the additional external power supply you can
use a LIN-bus controller to act as a level converter.ProtocolThis are the protocol details:19200 baud 8N2Device command:\r\nDEVICE\r\nVersion command:\r\nVERSION\r\nStatus command:\r\nSTATUS\r\nOpen command:\r\nOPEN\r\nStop command:\r\nSTOP\r\nClose command:\r\nCLOSE\r\nInstallationYou can install the Python AXA Remote library using the Python package manager
PIP:pip3 install axaremoteaxaremote CLIYou can use the Python AXA Remote library directly from the command line to
open, stop or close your window using the following syntax:Status of the window:python3 -m axaremote <serial port> statusOpen the window:python3 -m axaremote <serial port> openStop the window:python3 -m axaremote <serial port> stopClose the window:python3 -m axaremote <serial port> closeIf you add the argument--waitto the open or close command the process will
wait till the window is open/close and show the progress.Do you enjoy using this Python library? Then consider supporting my work:
Package: axarray
Title : axarray
Author :sylvain.guieu@gmail.com# Introduction
axarray is a numpy array where axes can be labeled.The idea is to be able to manipulate array, and do operation on axis without knowing the array shape order but on knowing labels related to the ‘physical’ meaning of the axes.Often in science, it is useful to name the array axes by an intelligible label.
For instance, for 2d images taken at different time, axes name of the obtain cube could be[“time”, “y”, “x”]axarray object aims to do that. For instancea.mean(axis=”time”)will execute  the mean on the axis labeled“time”where ever it is.Given a1 and a2, two axarray, binary operation like a1+a2 can be performed even if the two axarray has different axes order as long as they have matching axis labels.# installation
With pip` > pip install axarray `Or from git in your PYTHON_PATH` > git clonehttps://github.com/SylvainGuieu/axarray.git`# Examples`python >>> a = axarray(np.random.random((10,4,5)),["time", "y","x"])>>> b = a.transpose(["x","time","y"])>>> b.axes["x","time","y"] `can operate 2 transposed axarray as long as they match axis names`python >>>(a+b).axes["time", "y", "x"] `use the numpy frunction with axis labels`python >>>a.min(axis="time").shape(4,5) # similar to: >>> np.min(a ,axis="time")`axis can be alist of axis label`python >>>a.mean(axis=["x","y"]).shape(10,) `one can use the convenient apply method. Useful in non-direct call as in a plot func for instance`python >>> a.apply(time_reduce=np.mean,y_idx=slice(0,2)).shape(2,5) `transpose, reshape rename axes in one call`python >>> at = a.transform([("pixel","y","x"),"time"])>>> at.shape (20, 10)  # (4*5, 10) >>> at.axes ['pixel', 'time'] `Extract a spectrum from image from named indices`python ### make some indices >>> iy, ix = axarray( np.indices((3,4)),[0 ,"spatial","freq"])>>>ax[:,iy,ix].axes['time', 'spatial', 'freq'] `
Package: axclf
axclfSave/restore Matplotlib axes limits during iterative and interactive
development.BackgroundThis functionality becomes useful when using cell-mode functionality
in editors such as IdleX, Spyder, IEP, etc. During algorithm prototyping,
plots are generated. These helper routines allow for inspecting a
region of interest on a plot, and then running a change to see its effects
without needing to re-zoom/pan to the region of interest.Examplefrom pylab import *
from axclf import *
ion()

## interactive cell
figure(1)
axclf()  # save axes limits and clear figure

ex = 6  # adjust this number when re-running, (CTRL+Plus in IdleX)

x = linspace(0, 10, 1000)
y = sin(x) ** ex
plot(x, y)

axrestore()  # restore axes limits
Package: axdscfg
AXDS_CFG - Biblioteca para credenciaisEssa biblioteca tem a função de criar arquivos encriptados que podem ser compartilhados entre os servidores privados daAxiomas Tecnologia LTDA.
O uso dessa biblioteca surge da necessidade de não compartilhar as credenciais necessárias à aplicação entre os usuários e/ou desenvolvedores que obtiverem acesso ao código.InstalaçãoPara instalar o pacote, utilize o pip, do Python 3:pip3installaxdscfgComeçandoOs arquivos com credenciais devem ser escritos no formato de configuração de sessões, chaves e valores como o exemplo a seguir:[sessao-1]
usuario-1 = nome do usuario
senha-1 = senha_secreta_1234!

[sessao-2]
chave = awmfon5#2%$aw4
segredo = fi54643tn43n\f8543&434$33%febeafi5O arquivo deve ser nomeado comocredentialse depois encriptado utilizando uma chave de 32bytes.
Para gerar uma chave, utilize o comando abaixo.axdscfg-gO comando acima deve gerar um arquivo nomeadoaxds_cfg.key.
Para encriptar o arquivo com a chave gerada utilize o comando abaixo:axdscfg-eO comando acima deve gerar um arquivo nomeadocredentials.encno mesmo diretório.Pode-se recuperar as credenciais como no exemplo abaixo:secrets=Credentials(config_path)usuario=secrets.get_config_param('sessao-1','usuario-1')TestesApós qualquer alteração, deve-se utilizar opytestno diretório'/tests'para verificar o funcionamento do projeto.Apenas faça ouploadse as alterações passarem pelos testes.DependênciasEssa biblioteca é compatível comPython 3.5+.
É necessário instalar junto com a biblioteca os seguintos pacotespippara funcionar:configparser >= 3.7.4PyNaCl >= 1.3.0ObservaçõesAlterar o changelog, sempre que houver alterações, especificando a versão, data e uma descrição do que foi alterado.Changelog1.0.1 - 30/04/2020Mudanças no README.md.Adição do CHANGELOG.md.Tratamento doconfig_pathquando estiver terminando com uma barra ('/').1.0.0 - 30/04/2020Versão inicial.
Package: axe-core-python
axe-core-pythonAutomated web accessibility testing usingaxe-coreengine.DocumentationFull documentation.RequirementsPython >= 3.10selenium>= 4.4.0
orplaywright>= 1.25.0Installationpip install -U axe-core-pythonUsagefromplaywright.sync_apiimportsync_playwrightfromaxe_core_python.sync_playwrightimportAxeaxe=Axe()withsync_playwright()asplaywright:browser=playwright.chromium.launch()page=browser.new_page()page.goto("https://www.google.com")result=axe.run(page)browser.close()violations=result['violations']print(f"{len(violations)}violations found.")For more examples seedocumentation.
Package: axel
Axelis a very small Python library inspired by C#
events that allows an easy and elegant events handling.Examples:from axel import Event

event = Event()
def on_event(*args, **kwargs):
    return (args, kwargs)

event += on_event                     #handler registration
print(event(10, 20, y=30))
>> ((True, ((10, 20), {'y': 30}), <function on_event at 0x00BAA270>),)

event -= on_event                     #handler is unregistered
print(event(10, 20, y=30))
>> None


class Mouse(object):
    def __init__(self):
        self.click = Event(self)
        self.click += self.on_click   #handler registration

    def on_click(self, sender, *args, **kwargs):
        assert isinstance(sender, Mouse), 'Wrong sender'
        return (args, kwargs)

mouse = Mouse()
print(mouse.click(10, 20))
>> ((True, ((10, 20), {}),
>>  <bound method Mouse.on_click of <__main__.Mouse object at ...>>),)

mouse.click -= mouse.on_click         #handler is unregistered
print(mouse.click(10, 20))
>> NoneFeatures:- handlers can receive the sender as their first argument
- handlers can be executed in the same or separate threads
- handlers may be executed synchronous or asynchronous
- handlers execution may be synchronized on a lock
- the time allocated for the execution of a handler is controllable
- the number of actively executed handlers at one time is controllable
- the execution result of a handler can be cached
- the result of the execution is provided as a tuple ((flag, result, handler),)
- in case of error, the traceback may be provided for each handler in errorContributors:Erwin Mayer <traderwin at gmail dot com>
Rob van der Most <Rob at rmsoft dot nl>Please see the documentation:https://pythonhosted.org/axel
Package: axel-lab-to-nwb
axel-lab-to-nwbNWB conversion scripts and tutorials.
A collaboration withAxel Lab.InstallTo clone the repository and set up a conda environment, do:$ git clone https://github.com/ben-dichter-consulting/axel-lab-to-nwb.git
$ conda env create -f axel-lab-to-nwb/make_env.yml
$ source activate convert_to_nwbAlternatively, to install directly in an existing environment:$ pip install axel-lab-to-nwbUseAfter activating the correct environment, the conversion function can be used in different forms:1. Imported and run from a python script:Here's an example: we'll grab the data from the same experiment but stored in different.npzfiles and save it to a single.nwbfile.fromaxel_lab_to_nwbimportconversion_functionsource_paths={}source_paths['processed data']={'type':'file','path':PATH_TO_FILE}source_paths['sparse matrix']={'type':'file','path':PATH_TO_FILE}source_paths['ref image']={'type':'file','path':PATH_TO_FILE}f_nwb='fly2.nwb'metafile='metafile.yml'conversion_function(source_paths=source_paths,f_nwb=f_nwb,metafile=metafile,plot_rois=False)2. Command line:Similarly, the conversion function can be called from the command line in terminal:$ python conversion_module.py [processed_data_file] [sparse_matrix_file] [ref_image_file] 
  [output_file] [metadata_file]3. Graphical User Interface:To use the GUI, just run the auxiliary functionnwb_gui.pyfrom terminal:$ python nwb_gui.py4. Tutorial:Attutorialsyou can also find Jupyter notebooks with the step-by-step process of conversion.
Package: axelrod-fortran
Python wrapper for strategies originally written in Fortran.Free software: MIT licenseInstallationTo use this library the original Fortran code must be compiled:https://github.com/Axelrod-Python/TourExec.pip install axelrod-fortranUsageRunning a match:>>>importaxelrod_fortranasaxlf>>>importaxelrodasaxl>>>p1=axlf.Player('k31r')>>>p2=axlf.Player('k33r')>>>match=axl.Match((p1,p2),turns=5)>>>match.play()[(C,C),(C,C),(C,D),(C,D),(C,C)]ContributingPlease seeCONTRIBUTING.rstfor details about installing for development and
running the test suite.Changelogv0.4.8 (2020-08-20)Remove support for Python 3.5Add support for Python 3.7Add support for random seedingv0.4.7 (2020-03-13)Rename strategies to match latest axelrod namesRemove tag showing K59R as implemented by axl.RevisedDowningv0.4.6 (2019-01-01)Tag K58R as implemented by Rowsamv0.4.5 (2018-10-15)Add automatic copying of shared library for multiple copies of playersv0.4.4 (2018-03-15)Tag K66R as implemented by Mikkelsonv0.4.3 (2018-02-07)Tag K47R as implemented by RichardHuffordTag K51R as implemented by ColbertTag K64R as implemented by Yamanhiv0.4.2 (2018-01-10)Tag K35R as implemented by GetzlerTag K41R as implemented by WeinerTag K60R as implemented by GraaskampKatzenTag K68R as implemented by LeyvrazTag K72R as implemented by WhiteTag K75R as implemented by HarringtonTag K83R as implemented by BlackTag K84R as implemented by MoreTidemanAndChieruzzv0.4.1 (2017-11-29)Tag K31R as implemented by GoByMajorityTag K32R as implemented by KluepfelTag K42R as implemented by BorufsenTag K44R as implemented by WmAdamsTag K49R as implemented by Cavev0.4.0 (2017-10-20)Add ability to pass name of shared library filev0.3.2 (2017-10-13)Tag K76R as implemented by axl.GladsteinTag K67R as implemented by axl.TranquilizerTag K90R as implemented by axl.TitFor2TatsTag K86R as implemented by axl.MoreGrofmanRemove Tag showing K61R as implemented by axl.ChampionAdd test for Champion (K61R)v0.3.1 (2017-08-04)Identify strategy K61R as Champion by Danny Champion ranked at 2.v0.3.0 (2017-08-04)Identify strategy K92R as Tit For Tat by Anatol Rapoport ranked at 1.v0.2.0 (2017-07-30)Identify strategy K74R as participating in the second tournament, written
by Edward Friedland and ranked at 61All changes between v0.1.0 and this releasev0.1.0 (2017-07-29)Player class to wrap a fortran strategy function into the axelrod libraryCharacteristics dict with details of stochasticity, author and original
ranking for each functionPre-built lists for all strategies and strategies which participated in
Axelrod’s second tournament
Package: axe-playwright-python
axe-playwright-pythonAutomated web accessibility testing usingaxe-coreengine
andPlaywright.DocumentationFull documentation.DependenciesPython >= 3.10playwright>= 1.25.0Installationpython3 -m pip install -U axe-playwright-pythonpython3 -m playwright install --with-depsUsagefromplaywright.sync_apiimportsync_playwrightfromaxe_core_python.sync_playwrightimportAxeaxe=Axe()withsync_playwright()asplaywright:browser=playwright.chromium.launch()page=browser.new_page()page.goto("https://www.google.com")results=axe.run(page)browser.close()print(f"Found{results.violations_count}violations.")print(f"Full axe-core response:{results.response}")For more examples seedocumentation.ContributingSeeguide on contributing.AcknowledgmentsThis project is based onaxe-core-pythonby @ruslan-rv-ua and also takes inspiration fromaxe-selenium-pythonfor output formats.
Package: axe-selenium-python-dev
axe-selenium-python-dev was forked fromhttps://github.com/mozilla-services/axe-selenium-pythonon date 29/10/2020 all credits to them, there was no official pypi distribution available
which supports axe-core 3.3.2 so took the opportunity to create this to support others like usThis version of axe-selenium-python-dev supports all changes in repohttps://github.com/mozilla-services/axe-selenium-pythonbefore date 29/10/2020This version of axe-selenium-python-dev is using axe-core@3.3.2.RequirementsYou will need the following prerequisites in order to use axe-selenium-python:selenium >= 3.0.0Python 2.7 or 3.6The appropriate driver for the browser you intend to use, downloaded and added to your path, e.g. geckodriver for Firefox:geckodriverdownloaded andadded to your PATHInstallationTo install axe-selenium-python-dev:$pipinstallaxe-selenium-python-devUsagefromseleniumimportwebdriverfromaxe_selenium_pythonimportAxedeftest_google():driver=webdriver.Firefox()driver.get("http://www.google.com")axe=Axe(driver)# Inject axe-core javascript into page.axe.inject()# Run axe accessibility checks.results=axe.run()# Write results to fileaxe.write_results(results,'a11y.json')driver.close()# Assert no violations are foundassertlen(results["violations"])==0,axe.report(results["violations"])The methodaxe.run()accepts two parameters:contextandoptions.For more information oncontextandoptions, view theaXe documentation here.ResourcesIssue TrackerCodepytest-axeCHANGELOGversion 2.4.0Remove unused build modulesversion 2.3.0Axe-core node modules min file updated from 2.3.1 to 3.3.2version 2.2.0Axe-core node modules 3.3.2 path updatedversion 2.1.0Axe-core node modules 3.3.2 path updatedversion 2.0.0Axe-core node modules 3.3.2 updatedversion 1.2.0Updated to install node modulesversion 1.1.1Updated readmeversion 1.1.0Created package.json file to maintain axe-core dependencyversion 1.0.0Forkedhttps://github.com/mozilla-services/axe-selenium-pythonupdated code and initial pypi deploy
Package: axe-selenium-python-nhsuk
axe-selenium-python-nhsuk integrates aXe and Selenium to enable automated web accessibility testing.This version of axe-selenium-python-nhsuk is using axe-core v4.8.2InformationThis package is derived fromaxe-selenium-python 2.1.6.The main purpose of creating a new package was to allow us to update the axe-core version and push to PyPi. The original package has not been updated since 2018.InstallationTo install axe-selenium-python-nhsuk:$pipinstallaxe-selenium-python-nhsukUsage & CHANGELOGFor Usage and CHANGELOG, go to:https://pypi.org/project/axe-selenium-python/Updating & Deployment to PyPiUpdate filesCreate a new branch and make the following changes:axe_selenium_python/axe_selenium_python/package-lock.json- Update line 8-10 using information foundhere- search for ‘axe-core’ to find the relevant infoaxe-selenium-python/axe_selenium_python/package.json- Update line 16 (use the same version you set in the file above on line 8)axe-selenium-python/README.rst- Update the version of axe-core that will be used (found at the top of this README file)axe-selenium-python/setup.py- Increase the version number on line 13 - e.g. 1.0.3 > 1.0.4 (this new version number will also be used as a GitHub release tag)Create a Pull Request and merge your changes to the master branch.Deploy to PyPiOn GitHub.com, navigate to the main page of the repositoryTo the right of the list of files, clickReleasesClickCreate a new releaseClickChoose a tag, type the same version number you set inaxe-selenium-python/setup.py, clickCreate a new tagEnsure theTargetis set tomasterEnter aRelease title- e.g. Release axe-core version 4.4.3If required, enter additional text in the Release decriptionClickPublish releaseIf the release is successful then it should appear on PyPi in a few minutes.