Saravanan666/pypi-org huggingface dataset:
Package: akshay-jay
Tutorialhttps://packaging.python.org/en/latest/tutorials/packaging-projects/=========
BlessingsCoding with Blessings looks like this... ::from blessings import Terminal

t = Terminal()

print t.bold('Hi there!')
print t.bold_red_on_bright_green('It hurts my eyes!')

with t.location(0, t.height - 1):
    print 'This is at the bottom.'Or, for byte-level control, you can drop down and play with raw terminal
capabilities::print '{t.bold}All your {t.red}bold and red base{t.normal}'.format(t=t)
print t.wingo(2)Full API Reference <https://blessings.readthedocs.io/>_The PitchBlessings lifts several of curses_' limiting assumptions, and it makes your
code pretty, too:Use styles, color, and maybe a little positioning without necessarily
clearing the whole
screen first.Leave more than one screenful of scrollback in the buffer after your program
exits, like a well-behaved command-line app should.Get rid of all those noisy, C-like calls totigetstrandtparm, so
your code doesn't get crowded out by terminal bookkeeping.Act intelligently when somebody redirects your output to a file, omitting the
terminal control codes the user doesn't want to see (optional)... _curses:http://docs.python.org/library/curses.htmlBefore And AfterWithout Blessings, this is how you'd print some underlined text at the bottom
of the screen::from curses import tigetstr, setupterm, tparm
from fcntl import ioctl
from os import isatty
import struct
import sys
from termios import TIOCGWINSZ

# If we want to tolerate having our output piped to other commands or
# files without crashing, we need to do all this branching:
if hasattr(sys.stdout, 'fileno') and isatty(sys.stdout.fileno()):
    setupterm()
    sc = tigetstr('sc')
    cup = tigetstr('cup')
    rc = tigetstr('rc')
    underline = tigetstr('smul')
    normal = tigetstr('sgr0')
else:
    sc = cup = rc = underline = normal = ''
print sc  # Save cursor position.
if cup:
    # tigetnum('lines') doesn't always update promptly, hence this:
    height = struct.unpack('hhhh', ioctl(0, TIOCGWINSZ, '\000' * 8))[0]
    print tparm(cup, height - 1, 0)  # Move cursor to bottom.
print 'This is {under}underlined{normal}!'.format(under=underline,
                                                  normal=normal)
print rc  # Restore cursor position.That was long and full of incomprehensible trash! Let's try it again, this time
with Blessings::from blessings import Terminal

term = Terminal()
with term.location(0, term.height - 1):
    print 'This is', term.underline('pretty!')Much better.What It ProvidesBlessings provides just one top-level object:Terminal. Instantiating aTerminalfigures out whether you're on a terminal at all and, if so, does
any necessary terminal setup. After that, you can proceed to ask it all sorts
of things about the terminal. Terminal terminal terminal.print 'All your {t.red}base {t.underline}are belong to us{t.normal}'.format(t=term)Simple capabilities of interest include...boldreverseunderlineno_underline(which turns off underlining)blinknormal(which turns off everything, even colors)
Package: aktcal
This is a simple library that performs
basic python arithmetic operations.Installationpip install aktcalUsage:A guide to using the add_numbers function is as followsimport aktcal
add_num = aktcal.add_numbers(3, 7) # where 3 and 7 are the number you want to add
print(add_num)The functions in this library are:add_numbersubtract_numbermultiply_numberdivide_number_floatdivide_number_floorexponential_numbermode_numberVideo Usage GuideA video usage guide is provided via this linkYouTube LinkLicenseCopyright 2022 ScofieldThis repository is licensed under MIT license.
See LICENSE for details.Change Log1.0 (21/12/2022)
Package: aktos-dcs
aktos_dcs is designed for creating fault tolerant, realtime, massively concurrent, distributed (even behind firewalls), io-bound (eg. heavy-traffic web server), scalable (both vertically and horizontally), cross-platform and language agnostic applications.This library is developed for distributed automation projects in mind. Any PLC or motion controller related work (including HMI and SCADA) can be performed easily. Simulation of a real component of the target system becomes a trivial work to do. Graphical User Interface can be built by using desktop and mobile frameworks (Qt, GTK, …) or by web technologies (HTML5, Javascript, CSS, …).Message transport layer is built on top of ZeroMQ library, which has Python, Java, Node.js, C, C++ , C# and many other bindings. This means, any number of these languages can be used together to build a single project. Developers can work with their favourite language.Gevent based actor model (inspired from Erlang) is used for concurrency. This means, concurrency comes for free. Since there are no real threads or subprocesses, debugging is easy. N-to-N connections are managed out of the box, so there is no single point of failure exists.
Package: akttym
akttym - AKAAddcurrenttracktoyourmusic libraryHave you ever caught yourself liking tracks on Spotify obsessively to take advantage of their sweet machine learning recommendations? Yeah, me too. But alt-tabbing into the app every 3 minutes sucks. Withakttymyou can stay focused on your work and place like on your favorite music with a keyboard shortcut.Akttymis a simple script placing heart/like/whatever-they-call-it on currently playing track on Spotify, which combined with global keyboard shortcut allows for complete headless setup.And yes, there is a typo in the name.Getting StartedThis is a Python3 script, so it works with most Linux distributions and with macOS. I haven't tested it out on Windows, if there's a demand for it, please let me know!Disclaimer: It only works with on-line playback.UsageTo install akttym, just simply pip install it from PyPI:python3 -m pip install akttymIt comes with emptyconfig.yaml. In order to fill it up with your user data, runakttymfor the first time, and it will tell you where the config file is located:python3 -m akttym
WARNING:root:Config is invalid. username key is empty or does not exist.
                   Config file can be found at: /Users/evemorgen/Desktop/akttym/akttym/config.yamlCreate a Spotify app athttps://developer.spotify.com/dashboardand copyclient_idandclient_secretinto config file. Don't forget to add yourusernameas well.Addhttp://localhost:1911/redirect uri your new spotify app [Edit Settings -> Redirect URIs -> ADD].Run the script once again. This time it should open a website in your browser. Accept Spotify privacy stuff, after agreeing to sell your soul, you're good to go.It just works! (hopefully).python3 -m akttym
INFO:root:added Life On Mars? - 2015 Remastered Version to evemorgen's libraryBinding akttym to keyboard shortcutMacOSSearch forAutomatorapp and open it.Create new service [Service -> Choose]Drag and droprun shell scriptto workflow windowSelectno inputinService receivesdropdown and fill in command textbox withpython3 -m akttymSave created service (Cmd+Sor [File -> Save]) with nameakttymClose Automator and navigate to keyboard shortcuts settings [System preferences -> Keyboard -> Shortcuts -> Services]. At the very bottom of services list you should see newly created service. Double click on it and pick any key combination you like (be aware that you could override any of existing shortcuts)Test it out? Profit?ElementaryOS (Gnome)Enter keyboard settings [System Settings -> Keyboard -> Shortcuts -> custom]Click on+button and addpython3 -m akttymcommandit works?TroubleshootingEverytime I run it, it opens a new browser tabTry tochmod 766 /path/to/script/dir. Akttym needs write permission in directory where it's locatedBrowser tab opens with messageINVALID_CLIENT: Invalid redirect URIMake sure the right redirect uri (http://localhost:8080/) is added to the Spotify app.
After clickingAddbutton you still have to clickSavebutton at the very bottom of the page.AuthorsPatryk Galczynski-evemorgenLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: akudu
akuduAsync Kudu Client. Graceful way for Python to async connect to Kudu database (data storage engine).Quick startIt is recommanded to use Python == 3.10, others are not tested.

*protobuf>=3.20.0* is required, or you need to compile the protobuf files by yourself.Installakudufrom PyPI.pipinstallakuduTest your Kudu server, such as 192.168.0.111:7051 with code here:importasyncioimportakuducli=akudu.Client('192.168.0.111',7051)asyncdefop():tables=awaitcli.list_tables()print(tables)asyncio.run(op())Here are some frequently used calls, for more please refer to the documentation.cli.ping()cli.list_tables()cli.insert()cli.scan()CautionThis client is not thread-safety, it is recommended that one instance of Kudu() for each threads.MoreTODOconnect timeout, read timeout, write timeoutSteady state ping-pongcall-id used-uptest all callsbenchmark testsupport RPC Sidecarssupport TLSfully support SASLBase onhttps://github.com/apache/kudu/tree/1.16.0libprotoc 3.21.6 (or python: grpcio-tools)Run testpython-mvenvenvsourceenv/bin/activate
pipinstallprotobuf
python-mtest.test_tcpGenerate protobuf files# kudu-master download from github.com kudu# Because kudu proto generate .pb2 files in the name space: kudu, we need to change it into akudu.kudufindkudu-master/src/-name"*.proto"|xargssed-i's/import "kudu/import "akudu\/kudu/g'mkdirkudu-master/src/akudu
mvkudu-master/src/kudukudu-master/src/akudu# Generatefindkudu-master/src/-name"*.proto"|xargsprotoc-I=kudu-master/src--python_out=.# orfindkudu-master/src/-name"*.proto"|xargspython-mgrpc_tools.protoc-I=kudu-master/src--python_out=.Refhttps://github.com/apache/kuduhttps://github.com/apache/kudu/blob/master/docs/design-docs/rpc.mdhttps://github.com/cyrusimap/cyrus-sasl/blob/master/plugins/plain.chttps://www.rfc-editor.org/rfc/rfc4616.htmlhttps://github.com/vmagamedov/grpclib
Package: akun-tools
akun-tools is a set of tools for interacting with Fiction.live, previously known
as anonkun. Currently it includes a scraper that generates HTML ebooks of quests.akun-tools is a command-line utility that requires Python 3 and pip. To install
it, run:$pipinstallakun-toolsOnce installed, you run it withakun_scraper. Example usage:$akun_scrapergetinfohttps://fiction.live/stories/Abyssal-Admiral-Quest-/QGSpwAtjf9NMtvsTA/home$akun_scraperdownloadabyssal_admiral_quest.toml
Package: akurdyukov-tap-clickhouse
tap-clickhousetap-clickhouseis a Singer tap for ClickHouse.Built with theMeltano Tap SDKfor Singer Taps.InstallationInstall from GitHub:pipxinstallgit+https://github.com/akurdyukov/tap-clickhouse.git@mainConfigurationCapabilitiescatalogstatediscoveraboutstream-mapsschema-flatteningbatchAccepted Config OptionsSettingRequiredDefaultDescriptiondriverFalsehttpDriver typeusernameFalsedefaultDatabase userpasswordTrueNoneUsername passwordhostFalselocalhostDatabase hostportFalse8123Database connection portdatabaseFalsedefaultDatabase namesecureFalse0Should the connection be secureverifyFalse1Should secure connection need to verify SSL/TLSstream_mapsFalseNoneConfig object for stream maps capability. For more information check outStream Maps.stream_map_configFalseNoneUser-defined config values to be used within map expressions.flattening_enabledFalseNone'True' to enable schema flattening and automatically expand nested properties.flattening_max_depthFalseNoneThe max depth to flatten schemas.batch_configFalseNoneA full list of supported settings and capabilities for this
tap is available by running:tap-clickhouse--aboutConfigure using environment variablesThis Singer tap will automatically import any environment variables within the working directory's.envif the--config=ENVis provided, such that config values will be considered if a matching
environment variable is set either in the terminal context or in the.envfile.Source Authentication and AuthorizationSetusernameandpasswordsettings to authorize.UsageYou can easily runtap-clickhouseby itself or in a pipeline usingMeltano.Executing the Tap Directlytap-clickhouse--version
tap-clickhouse--help
tap-clickhouse--configCONFIG--discover>./catalog.jsonDeveloper ResourcesFollow these instructions to contribute to this project.Initialize your Development Environmentpipxinstallpoetry
poetryinstallCreate and Run TestsCreate tests within thetestssubfolder and
then run:poetryrunpytestYou can also test thetap-clickhouseCLI interface directly usingpoetry run:poetryruntap-clickhouse--helpTesting withMeltanoNote:This tap will work in any Singer environment and does not require Meltano.
Examples here are for convenience and to streamline end-to-end orchestration scenarios.Run ClickHouse server with basic database usingdocker-compose-ftests/docker-compose.ymlup-dNext, install Meltano (if you haven't already) and any needed plugins:# Install meltanopipxinstallmeltano# Initialize meltano within this directorycdtap-clickhouse
meltanoinstallNow you can test and orchestrate using Meltano:# Test invocation:meltanoinvoketap-clickhouse--version# OR run a test `elt` pipeline:meltanoelttap-clickhousetarget-jsonlSDK Dev GuideSee thedev guidefor more instructions on how to use the SDK to
develop your own taps and targets.
Package: akv
Azure Key Vault (akv)This is a simple package for accessing secrets in Azure Key Vault.SetupThe environment variablesAZURE_TENANT_ID,AZURE_CLIENT_ID,AZURE_CLIENT_SECRETandKEY_VAULT_NAMEall need to be set in your environment.The Tenant ID aka the Directory ID of your Azure tenant.The Client ID aka the Application ID of the app identity. Go to App Registrations in the Azure Portal to create an app.The Client Secret aka the secret used to request a authorization token for the app. Client Secrets can be defined underApp Registrations>App Name>Certificates & secrets.The Key Vault name is the literal name of the Azure Key Vault resource defined.Note that the client needs permissions to access the secrets in the vault. In the Azure Portal, navigate toKey Vaults>Key Vault Name>Access policiesand click onAdd Access Policy.UseSet the four required environment variables:export AZURE_TENANT_ID='somethin-glik-ethi-ssss-ssssssssssss'
export AZURE_CLIENT_ID='134kmg50-af2g-2qq2-g3ag-q2f[p30jgsl2'
export KEY_VAULT_NAME='Key-Vault-Name-From-Azure-Portal'
export AZURE_CLIENT_SECRET='2_2rfammunoia3befg_402?w].e'Use in code:>>>fromakvimportSecrets>>>my_secrets=Secrets()>>>my_secrets.set('TestSecret','Hunter2')>>>my_secrets.get('TestSecret')'*******'>>>my_secrets.delete('TestSecret')ContributeGo ahead:$gitclonehttps://github.com/casperlehmann/akv.git
$cdakv
$pipinstall-rrequirements.txt
Package: akvile-turing-calculator
Calculator ProjectA simple calculator module that provides basic arithmetic operations and memory management.Structure.
├── akvile_turing_calculator/
│   ├── __init__.py
│   └── calculator.py
├── tests/
│   ├── __init__.py
│   ├── test_add.py
│   ├── test_divide.py
│   ├── test_multiply.py
│   ├── test_reset.py
│   ├── test_root.py
│   └── test_subtract.py
├── LICENSE
├── README.md
├── requirements.txt
├── pyproject.toml
└── poetry.lockFeaturesBasic arithmetic operations: addition, subtraction, multiplication, division, and nth root.Memory management: store and use results from previous calculations.Type validation: ensures that the inputs are of appropriate types.InstallationPoetryTo install with poetry usepoetry add akvile-turing-calculatorpipTo install with pip usepip install akvile-turing-calculatorUsagepythonfrom akvile_turing_calculator import Calculator

calc = Calculator()
print(calc.add(5))          # Outputs: 5.0
print(calc.subtract(2))     # Outputs: 3.0
print(calc.multiply(4))     # Outputs: 12.0
print(calc.divide(3))       # Outputs: 4.0
print(calc.root(2))         # Outputs: 2.0
calc.reset()                # Resets memory to 0.0TestingTests are located in thetests/directory and can be run usingpytest.To run all tests usepytest tests/.ContributingFork the repository.Create a new branch for your features or fixes.Write tests that cover your changes.Submit a pull request and provide a detailed description of your changes.LicenseThis project is licensed under the terms of theLICENSEfile.
Package: akvmodel
akvmodel: A Python Tool for Social Network Simulations in the Alvim-Knight-Valencia ModelFormal models for social networks aim to capture the crucial aspects of the evolution of agents' beliefs over time, as communication occurs in a network. The Alvim-Knight-Valencia (AKV) social network model (2019) works on the dynamics of belief updates using a quantitative spectrum of belief values, and an influence graph representing the relationships between agents. Previous work on the AKV model developed belief update functions representing a range of belief update methods.This package implements the AKV model and a catalog of its belief updates, initial configurations, and update functions from the literature, creating a general tool that incorporates a wide range of possible approaches to belief updates. In addition, we allow the AKV model to have multiple outcomes (or truth values) for the proposition used in the model. This tool facilitates future research using the AKV model without the need to reimplement it also allowing its reproducibility.InstallationUse the package managerpipto install akvmodel.pipinstallakvmodelUsageThe full reference of the package can be found inDOCUMENTATION.md.importnumpyasnpfromakvmodelimport*# Create model with 10 agents, mildly polarized initial configuration, faintly communicating influence graph, and confirmation bias belief update.model=AKV(belief_state=InitialConfigurations.mildly(10),influence_graph=InfluenceGraphs.faintly(10),update_function=UpdateFunctions.confirmation_bias,)# Update the model 100 timesfor_inrange(100):akvmodel.update()# Get polarizationp=akvmodel.get_polarization()# Plot polarization evolution for the first outcome in the domainplt.plot(p[0])ContributingFull example can be found in the Jupyter Notebookexample.ipynb.Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: ak-yara-python
yara-pythonWith this library you can useYARAfrom
your Python programs. It covers all YARA’s features, from compiling, saving
and loading rules to scanning files, strings and processes.Here it goes a little example:>>>importyara>>>rule=yara.compile(source='rule foo: bar {strings: $a = "lmn" condition: $a}')>>>matches=rule.match(data='abcdefgjiklmnoprstuvwxyz')>>>print(matches)[foo]>>>print(matches[0].rule)foo>>>print(matches[0].tags)['bar']>>>print(matches[0].strings)[(10L,'$a','lmn')]InstallationThe easiest way of installing YARA is by usingpip:$pipinstallyara-pythonBut you can also get the source from GitHub and compile it yourself:$gitclone--recursivehttps://github.com/VirusTotal/yara-python$cdyara-python$pythonsetup.pybuild$sudopythonsetup.pyinstallNotice the--recursiveoption used withgit. This is important because
we need to download theyarasubproject containing the source code forlibyara(the core YARA library). It’s also important to note that the two
methods above linklibyarastatically into yara-python. If you want to link
dynamically against a sharedlibyaralibrary use:$sudopythonsetup.pyinstall--dynamic-linkingFor this option to work you must build and installYARAseparately before installingyara-python.DocumentationFind more information about how to use yara-python athttps://yara.readthedocs.org/en/latest/yarapython.html.
Package: alabaster
What is Alabaster?Alabaster is a visually (c)lean, responsive, configurable theme for theSphinxdocumentation system.
It requires Python 3.9 or newer and Sphinx 3.4 or newer.It began as a third-party theme, and is still maintained separately, but as of
Sphinx 1.3, Alabaster is an install-time dependency of Sphinx and is selected
as the default theme.Live examples of this theme can be seen onthis project’s own website,paramiko.org,fabfile.organdpyinvoke.org.For more documentation, please seehttps://alabaster.readthedocs.io/.
Package: alabester
What is Alabester?Alabaster with some CSS bugs squashed. See it live atintrot docs.How to use Alabester?pip install alabesterAfter installation, justs/labaster/labester/gacross your project,
requirements included (if Alabaster was indirectly pulled by Sphinx,
make sure to add Alabester to your list!) - the 0.7.x versions will
try not to break compatibility.However, it’s not a drop-in replacement; due to Sphinx hard-coding
some extra defaults for Alabaster, your sidebar might not look as
expected without the following modification.For the default Alabaster experience, put this in yourconf.py:html_sidebars={'**':['about.html','navigation.html','relations.html','searchbox.html','donate.html']}If you’d like to know more, check out eg. sphinx-doc/sphinx#5066. (I also wrote a debugging murder mystery on myblegon 4/20).ChangelogAvailable on GitHub.For max combatibility, you can pin version 0.7.20. Upstream docs apply.Want to improve Alabester?Join in on the fun!What is Alabaster?Alabaster is a visually (c)lean, responsive, configurable theme for theSphinxdocumentation system. It is Python 2+3 compatible.It began as a third-party theme, and is still maintained separately, but as of
Sphinx 1.3, Alabaster is an install-time dependency of Sphinx and is selected
as the default theme.Live examples of this theme can be seen onthis project’s own website,paramiko.org,fabfile.organdpyinvoke.org.For more documentation, please seehttp://alabaster.readthedocs.io.NoteYou can install the development version viapip install-egit+https://github.com/bitprophet/alabaster/#egg=alabaster.
Package: alacritty-colorscheme
Alacritty ColorschemeChange colorscheme of alacritty with ease.InstallationYou can install alacritty-colorscheme using pip:pipinstall--useralacritty-colorschemeUsageusage: alacritty-colorscheme [-c configuration file] [-C colorscheme directory] [-V] [-h]
                             {list,status,toggle,apply} ...Getting colorschemesYou can get colorschemes fromaaron-williamson/base16-alacrittyREPO="https://github.com/aaron-williamson/base16-alacritty.git"DEST="$HOME/.aarors-williamson-colorschemes"# Get colorschemesgitclone$REPO$DEST# Create symlink at default colors location (optional)ln-s"$DEST/colors""$HOME/.config/alacritty/colors"You can also get colorschemes from fromeendroroy/alacritty-themeREPO=https://github.com/eendroroy/alacritty-theme.gitDEST="$HOME/.eendroroy-colorschemes"# Get colorschemesgitclone$REPO$DEST# Create symlink at default colors location (optional)ln-s"$DEST/themes""$HOME/.config/alacritty/colors"Sync with vim/neo-vimIf you are using base16 colorschemes frombase16-vimplugin, you can use
the-Vargument to automatically generate~/.vimrc_backgroundfile when you
change alacritty colorscheme. You will need to source this file in your vimrc
to load the same colorscheme in vim.Add this in your.vimrcfile:iffilereadable(expand("~/.vimrc_background"))letbase16colorspace=256" Remove this line if not necessarysource~/.vimrc_backgroundendifWhen you change your alacritty colorscheme, you simply need to source~/.vimrc_backgroundor yourvimrc.
If you are a neo-vim user,~/.vimrc_backgroundwill be automatically sourced.Examplesbash/zsh aliasesAdd this in your.zshrcor.bashrcfile:LIGHT_COLOR='base16-gruvbox-light-soft.yml'DARK_COLOR='base16-gruvbox-dark-soft.yml'aliasday="alacritty-colorscheme -V apply$LIGHT_COLOR"aliasnight="alacritty-colorscheme -V apply$DARK_COLOR"aliastoggle="alacritty-colorscheme -V toggle$LIGHT_COLOR$DARK_COLOR"i3wm/sway bindingsAdd this in your i3configfile:set$light_colorbase16-gruvbox-light-soft.ymlset$dark_colorbase16-gruvbox-dark-soft.yml# Toggle between light and dark colorschemesbindsym$mod+Shift+nexecalacritty-colorscheme-Vtoggle$light_color$dark_color# Toggle between all available colorschemesbindsym$mod+Shift+mexecalacritty-colorscheme-Vtoggle# Get notification with current colorschemebindsym$mod+Shift+bexecnotify-send"Alacritty Colorscheme"`alacritty-colorschemestatus`DevelopmentRunning locallypipinstall--userpoetry

gitclonehttps://github.com/toggle-corp/alacritty-colorscheme.gitcdalacritty-colorscheme

poetryinstall
poetryrunpython-malacritty_colorscheme.cliInstalling locallypipinstall--user.LicenseContent of this repository is released under the [Apache License, Version 2.0].Apache License, Version 2.0