Saravanan666/pypi-org huggingface dataset:
Package: pytlas
An open-source 🤖💬 Python 3 assistant library built for people and made to be super easy to setup and understand.pytlastranslates natural language sentences into python skills you can easily define yourself. It makes it really easy to develop your own Google Assistant, Alexa or whatever but runs onyour devicewithyour trusted codeandno connectionto obscure servers.🎮 Want to try it? Check theofficial demo!🌊 Want to get your feet wet? Have a look at theexample/skillsfolder to see how it works!📚 Want to go further and develop your own skill? Let’s visit thelatest documentationand share your work!Quick startInstallation$pipinstallpytlas[snips]# Gets the latest release from pypi$gitclonehttps://github.com/atlassistant/pytlas&&cdpytlas&&pipinstall-e.[snips]# or directly from sourceTestingWhen `pytest` is also installed, it may cause some tests to fail, so make sure it is not installed with `pip uninstall -y pytest` or use venv$gitclonehttps://github.com/atlassistant/pytlas&&cdpytlas$pipinstall-e.[snips,test]$python-mnose--with-doctest--with-coverage--cover-package=pytlasLinting$pylintpytlassetup.py# in the root directoryAuthorsJulien LeicherJean-Michel LekstonContributingContributions arewelcome!pytlasis being developed on our spare time so every help is greatly appreciated to push this project further.I have ideas!Don’t hesitate to submit them in the repo and we’ll see what can be done.I have skills & time!Great, have a look atthe github project pageto see the big plans for upcoming releases or fix unresolved issues to start.I have money!If you want to donate to help us find more time to work onpytlasand similar projects, you can support us on liberapay, thanks ❤️!
Package: pytlas-broker
Library and Command Line Utilities to communicate with thepytlas open-source assistantusing
channels (such as GSM or MQTT).PurposeIt wraps thepytlaslibrary in a tinyserveraccessible from multiplechannelsto make it easy to create clients in the language of your choice
to trigger user agents.Installation$pipinstallpytlas_broker# Gets the latest release from pypi$gitclonehttps://github.com/atlassistant/pytlas-broker&&cdpytlas-broker&&pipinstall-e.# or directly from sourceGetting startedFor now, both the server and the client CLI communicates with an MQTT server. If
you wish to provider host, port and credentials, just sets pytlas settings in themqttsection:[pytlas]skills_dir=skills/[mqtt]host=localhostport=1883username=password=ServerAt the moment, the CLI will serve agents loaded from a configuration folder using
MQTT.It assumes the following directory structure:your_data_folder/default/ # Represents the default directory if the user does not have oneskills/ # Referenced via the below pytlas.ini filecache/ # Cache folder for pytlas interpreterpytlas.ini # This file will be loaded at startup by the CLI for initial configurationjohn/cache/ # Cache folder specific for that userpytlas.ini # May override settings for this user onlyWhen the server receive a message from an opened channel, it will create an agent
for the user (if it doesn’t exist yet) and answer on the last available channel
for that user.To start the broker, use the following command:$pytlas-brokerserveyour_data_folder/And if you have already cloned thepytlasrepository in the previous folder,
you can serve the examples right away using:$pytlas-brokerserve../pytlas/--defaultexampleClientOnce your server is running, you can start a tiny REPL client with the command:$pytlas-brokerreplTesting$pipinstall-e.[test]$python-mnose--with-doctest-v--with-coverage--cover-package=pytlas_brokerLinting$pylint--rcfile.pylintrcpytlas_brokersetup.py# in the root directory
Package: pytld
# pytldRefer to `http://mxr.mozilla.org/mozilla/source/netwerk/dns/src/effective_tld_names.dat?raw=1`. The top-level domain analysis of the URL or domain name.## Installation```bash$ pip install pytld```## Usage exampleIt can be from the URL or domain name analysis top-level domain:```pythonfrom pytld import get_tldfrom pytld import get_full_domainfrom pytld import get_hostnamedef test_get_tld():assert get_tld('team.develop.google.hk.', strict=False) == 'develop.google.hk'assert get_tld('team.develop.google.hk.') == 'google.hk'assert get_tld('google.hk.') == 'google.hk'assert get_tld('http://www.example.com:8080/admin.php/afaf?13123') == 'example.com'assert get_tld('www.google.com') == 'google.com'assert get_tld('mail.google.com.hk') == 'google.com.hk'assert get_tld('apps.google.com.hk.') == 'google.com.hk'assert get_tld('blog.google.hk.') == 'google.hk'def test_get_full_domain():assert get_full_domain('http://www.example.com.cn:8080/admin.php/afaf?13123') == 'www.example.com.cn'def test_get_hostname():assert get_hostname('http://www.example.com.cn:8080/admin.php/afaf?13123') == 'www'```## LicenseMPL 1.1/GPL 2.0/LGPL 2.1## SupportFor any issues contact me at the e-mail given in the `Author` section.## Authormykings <xsseroot@gmail.com>
Package: py-tldr
Py-tldrPy-tldr is a new Python client fortldr pagesbased onClick.Installationpipinstallpy-tldrUsage$ tldr --help

Usage: tldr [OPTIONS] [COMMAND]...

  Collaborative cheatsheets for console commands.

  For subcommands such as `git commit`, just keep as it is:

      tldr git commit

Options:
  -v, --version                   Show version info and exit.
  --edit-config                   Open config file with an editor.
  -p, --platform [android|common|linux|osx|sunos|windows]
                                  Override current operating system.
  -L, --language TEXT             Specify language of the page(with no
                                  fallbacks), e.g. `en`.
  -u, --update                    Update local cache with all pages.
  -h, --help                      Show this message and exit.Config file should be located as~/.config/tldr/config.toml, you can use--edit-configto create a default one, which will contain the following content:page_source="https://raw.githubusercontent.com/tldr-pages/tldr/main/pages"language="en"platform='linux'proxy_url=""[cache]enabled=truetimeout=24download_url="https://tldr.sh/assets/tldr.zip"Cache is enabled implicitly, with 24 hours as expiration time by default.A proxy url can be set for convenience, proxy envs such asHTTP_PROXYwill also work.SupportPython: >=3.7OS: Not tested on Windows.ChangelogSeeCHANGELOGLicenseMITCreditsThis package was created withcookiecutterandiamgodot/create-python-appproject template.
Package: pytle
Python Module for Importing Keplerian ElementsBy: Jeremy Turner / N0AWjeremy@jeremymturner.comQuick Installationpip install pytleUpgradingpip install --upgrade pytleQuick Usagepytle --satname SO-50Full Usageusage: pysatadif [-h] -s SATNAME [SATNAME ... ] [-o OUTPUT] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -s SATNAME, --satname SATNAME [SATNAME ... ]
                        Satellites to track
  -o OUTPUT, --output OUTPUT
                        Output Format (text, json)
  -v, --verbose         Print verbose debugging messagesHistory0.0.3 - Removed Python 2 support. fixed json output to be actually json0.0.2 - Fixed a module name error0.0.1 - Initial import
Package: pytleap
pytleapInterface to communicate with a TP-Link EAP access point.This project aims to create an API to programmatically access the configuration of aTP-Link EAPaccess point.RequirementsPythonaiohttpSupported hardwareDevelopment of this library is done with an EAP245 v3.LimitationsThis library uses the web admin interface to access the information of the access point.
It appears that the webserver implementation does not support concurrent connections.In thessh-accessbranch is an implementation that makes
use of SSH to connect to the device. There is no issue with concurrent access when using a SSH connection, however
available data is very limited.
Package: pytls13
Welcome to pytls13 !pytls13implements a TLS 1.3 client and relies onpylurkfor all cryptographic operations related to the client authentication.pytl13can be used as follows:$ cd examples/cli/
$ ./tls_client --connectivity 'lib_cs' https://www.google.compytls13leverages the Limited Use of Remote Keys (LURK) framework as well as it extension for TLS 1.3.draft-mglt-lurk-lurkdraft-mglt-lurk-tls13.
LURK is a generic protocol whose purpose is to support specific interactions with a given cryptographic material, which is also known as Cryptographic Service (CS). In our casepytls13implements the TLS Engine (E) whilepylurkimplements the CS as depicted below:+----------------------------+
|       TLS Engine (E)       |
+------------^---------------+
             | (LURK/TLS 1.3)
+------------v---------------+
| Cryptographic Service (CS) |
| private_keys               |
+----------------------------+

TLS being split into a CS and an Enginepytls13 documentationprovidesExamples of TLS 1.3 clientandUsingpytls13andpylurksections with detailed examples on how to combine the TLS engine (E) and the Crypto Service (CS) with.  TheLURK-T TLS 1.3 clientsection providing a complete example where the CS runs into a Trusted Execution Enclave (TEE) - SGX in our case.InstallationCurrently the cli scripts are not installed via pip3 package, so one need to install it manually from the git repo.The simple installation is as follows:Installpytls13andpylurkfrom the git repo.`git clone https://github.com/mglt/pytls13.git`
 `git clone https://github.com/mglt/pylurk.git tls13`. Note that for a very limited usage pip3 pylurk maybe sufficient. 
3. Update in `tls_client`, in pytls13.git/example/cli`
* `CS_GRAMINE_DIR`: the location of the `pylurk.git/example/cli` directory
* `GRAMINE_DIR` the directory of the Gramine directory
* The path of the `pylurk` and `pytls13` modules indicated by the `sys.path.insert` directive.

For a more advamce usage - that is the CS please follow the `pylurk` installation steps.

For a more advance us involving to use of TEE please install Gramine.

## TODO:

* Include the cli in the pip3 package.
* Implement a tls server
* Re-organize classes and move TLS generic classes from tls_client_handler to tls_hanlder. 
* Implement the post handshake authentication as well as 0-rtt
* Provide more standard TLS client API / server.
Package: pytls-ca
PyTLS-CAPyTLS-CA is a Python application that quickly creates self-signed TLS certificates for your local development environment.InstallYou can install PyTLS-CA using pip:pipinstallpytls-caUsageYou can specify options like the CA name, the services for which to generate certificates, and the output directory. For example:pytls-n'My Custom CA'-sexample.com-sapi.example.com-d'./certs'If you have existing CA certificates, you can specify the paths to the CA certificate and key.pytls--ca-cert'./certs/ca.crt'--ca-key'./certs/ca.key'-sexample.com-sapi.example.comOptions-n,--ca-name: The subject for the CA certificate. Defaults toPyTLS CA.-s,--services: The services for which to generate certificates. Can be specified multiple times for multiple services.-d,--output-directory: The directory in which to save the generated certificates. Defaults to./certificates.--ca-cert: The path to an existing CA certificate. If specified, the CA certificate will be used to sign the generated certificates.--ca-key: The path to an existing CA key. If specified, the CA key will be used to sign the generated certificates.-h,--help: Show the help message and exit.DevelopmentThis project usesPoetryfor dependency management. To install the project and its dependencies, run:poetryinstallThis project usesRufffor linting and code formatting.PublishingTo publish a new version of the package, run:poetryconfigpypi-token.pypi<token>
poetrypublish--build
Package: pytlsd
pytlsdPython transparent bindings for LSD (Line Segment Detector)Bindings over the original C implementation of LSD, that allows to change the different thresholds involved and to provide custom image gradientes in order to compute the method with stronger features.Installgit clone --recursive https://github.com/ibaiGorordo/pytlsd.git
cd pytlsd
pip3 install -r requirements.txt
pip3 install .Executionpython3 tests/test.py
Package: py-tlsh
TLSH - C++ extension for PythonTLSH (Trend Micro Locality Sensitive Hash)is a fuzzy matching library.
Given a byte stream with a minimum length of 50 bytes
TLSH generates a hash value which can be used for similarity comparisons.
Similar objects will have similar hash values which allows for
the detection of similar objects by comparing their hash values.  Note that
the byte stream should have a sufficient amount of complexity.  For example,
a byte stream of identical bytes will not generate a hash value.What's new in py-tlsh 4.7.2This Python module supercedes the python-tlsh package on PyPi.
The improvements in 4.7.2, are that we added additional functions to Pythonlvalueq1ratioq2ratiochecksumbucket_valueis_validThe improvements 4.5.0 were:fixed this package so that it works on Windowscompatibility with VirusTotal adoption of TLSH: updated to the T1 hash format with backwards compatibility for old hashesfixed the q3=0 divide by zero bugissue 79Usageimporttlshtlsh.hash(data)Note data needs to be bytes - not a string.
This is because TLSH is for binary data and binary data can contain a NULL (zero) byte.In default mode the data must contain at least 50 bytes to generate a hash value and that
it must have a certain amount of randomness.
To get the hash value of a file, trytlsh.hash(open(file,'rb').read())Note: the open statement has opened the file in binary mode.Exampleimporttlshh1=tlsh.hash(data)h2=tlsh.hash(similar_data)score=tlsh.diff(h1,h2)h3=tlsh.Tlsh()withopen('file','rb')asf:forbufiniter(lambda:f.read(512),b''):h3.update(buf)h3.final()# this assertion is stating that the distance between a TLSH and itself must be zeroasserth3.diff(h3)==0score=h3.diff(h1)Extra OptionsThediffxlenfunction removes the file length component of the tlsh header from the comparison.tlsh.diffxlen(h1,h2)If a file with a repeating pattern is compared to a file with only a single instance of the pattern,
then the difference will be increased if the file lenght is included.
But by using thediffxlenfunction, the file length will be removed from consideration.Backwards Compatibility OptionsIf you use the "conservative" option, then the data must contain at least 256 characters.
For example,importostlsh.conservativehash(os.urandom(256))should generate a hash, buttlsh.conservativehash(os.urandom(100))will generate TNULL as it is less than 256 bytes.If you need to generate old style hashes (without the "T1" prefix) then usetlsh.oldhash(os.urandom(100))The old and conservative options may be combined:tlsh.oldconservativehash(os.urandom(500))
Package: pytlv
TLV (tag length lavue) data parser, especially useful for [EMV](http://emvco.com) tags parsingTo import the pytlv module in your code:```pythonfrom pytlv.TLV import *```To parse data from a TLV string:```pythontlv = TLV(['84', 'A5']) # provide the possible tag valuestlv.parse('840E315041592E5359532E4444463031A5088801025F2D02656E')>>> {'84': '315041592E5359532E4444463031', 'A5': '8801025F2D02656E'}```To build a TLV string:```pythontlv = TLV(['9F02', '9F04'])tlv.build({'9f02': '000000001337'})>>> '9F0206000000001337'```
Package: pytmdl
pyTMDLInstall$pipinstallpytmdl
$poetryaddpytmdlReferencesTMDL project example:https://github.com/mthierba/tmdl-example/tree/mainlkmlparser:https://github.com/joshtemple/lkmlpyYAMLparser for load/dump method:https://github.com/yaml/pyyaml/tree/mainpydantic:https://docs.pydantic.dev/latest/concepts/models/Microsoft.AnalysisServices Namespace:https://learn.microsoft.com/en-us/dotnet/api/microsoft.analysisservices?view=analysisservices-dotnetMicrosoft.AnalysisServices.Tabular Namepsace:https://learn.microsoft.com/en-us/dotnet/api/microsoft.analysisservices.tabular?view=analysisservices-dotnet
Package: pytme
Python Template Matching Engine (PyTME)A software for template matching on electron microscopy data.📖Official Documentation| 🚀Installation Guide| 📚API ReferenceInstallationThere are three ways to get PyTME up and running:Install from Source:pipinstallgit+https://github.com/KosinskiLab/pyTMEInstall from PyPi:pipinstallpytmeDocker Container:Build and use the PyTME container from Docker. This assumes a linux/amd64 platform.dockerbuild\-tpytme\--platformlinux/amd64\-fdocker/Dockerfile\.🔗 For more on the Docker container, visit theDocker Hub page.PublicationThe pyTME publication is available onbioRxiv.@article{Maurer2023.10.23.563472,
	author = {Valentin J. Maurer and Marc Siggel and Jan Kosinski},
	journal = {bioRxiv},
	title = {PyTME (Python Template Matching Engine): A fast, flexible, and multi-purpose template matching library for cryogenic electron microscopy data},
	year = {2023}}
Package: pytmi
pytmiTMI (Twitch Messaging Interface) library for Python.You can get your OAuth token with the sitehttps://twitchapps.com/tmi/.ExampleHere's a little application that logs in the user using OAuth, joins the Twitch channel requested by the user, sends the messageHello, Twitch!to the chat and then leaves the channel.importasyncioimportpytmiasyncdefmain()->None:nick=input("Insert your Twitch nickname: ").strip()token=input("Insert your Twitch OAuth token: ").strip()channel=input("Insert the channel to join: ").strip()asyncwithpytmi.Client()asclient:awaitclient.login_oauth(token,nick,channel)awaitclient.join(channel)awaitclient.send_message("Hello, Twitch!")awaitclient.part(channel)awaitclient.logout()if__name__=="__main__":try:loop=asyncio.new_event_loop()loop.run_until_complete(main())except:print("Something went wrong.")You can find others usage example inside thetestdirectory.Known bugsSpurious errors when using SSL.Possible problems with pending tasks (if you don't cleanup them properly).TodosHandle connection and login error in a better way.Handle messages that are not correctly encoded in UTF8.Changelogv1.0.0Major version bump.Add a background task that collects messages in a buffer and sends pong as needed.Rewrite Client code.Change methods name (part->leave,privmsg->send_message).Add async context manager (async with) support for Client.v0.3.0Major library simplification and rewriting.Removed buggy background task.Add library logging.v0.2.3Add background task to collect messages (removed inv0.3.0).Refactor code.v0.2.2Add message buffer abstraction.Major code refactoring.v0.2.1Minor code refactoring.v0.2.0Rewrite library to be asynchronous.Add SSL support (enabled by default).Reorganize project structure.v0.1.1Minor code refactoring.Improve message handling and parsing.v0.1.0Initial version.
Package: py-tmio
py-trackmania.ioAn Asyncio Friendly Trackmania API Wrapper for Python!Important -Trackmania.io API for my own project?See below on how to set your user agentYour User-Agent Must Have:Your Discord UsernameYour Project NameExample:NottCurious#4351 | TMIndiaBot" | via py-tmio" is automatically appended to your user agentHow to set user agent.fromtrackmaniaimportClientClient.USER_AGENT="NottCurious#4351 | TMIndiaBot"How to set Redis Server SettingsfromtrackmaniaimportClientClient.REDIS_HOST="127.0.0.1"# 127.0.0.1 is defaultClient.REDIS_PORT=6379# 6379 is defaultClient.REDIS_DB=0# 0 is defaultClient.REDIS_PASSWORD="yadayadayada"# Defaults to None. Don't need to change this if your redis server does not have a password.Support ServerYou can report bug fixes, issues, feature request or ask for help at the discord server! (Click the Badge!)DocsDocs can be found onreadthedocs.org.InstallationNote:Must have Python 3.10 or higher.python3-mpipinstallpy-tmio# Linuxpython-mpipinstallpy-tmio# WindowsCachingCaching is done using a redis server. The client defaults to127.0.0.1:6379.Caching is notrequiredbut is highly recommended.Pull Requests and IssuesIf you have any suggestions, bugs, fixes or enhancements, please open
aPull RequestorIssueDiscordContact me on Discord if you have any questions, NottCurious#4351Or join thesupport server here!LicenseMIT License
Package: pytmosph3r
pytmosph3rPytmosph3R is a Python-3 library that computes transmission spectra based on 3D atmospheric simulations, for example performed with the LMDZ generic global climate model.PrerequisitesnumpyInstalling from PyPIPytmosph3r is available on the PyPI repository. You can install the latest version avaible with:pip install pytmosph3rDon't forget to install numpy beforehand.Installing from sourceIf you intend to develop or get the latest (unreleased) developments, you can clone (and move in) the current repository and then install Pytmosph3R using:pip install -e .Don't forget to updatepipif errors are raised.To generate the documentation, you will need to install the following packages:pip install nbsphinx sphinx-autoapi sphinx_rtd_theme sphinxcontrib-bibtex sphinx-argparse
conda install sphinx pandoc # installs more (required) dependencies than pipYou can then generate the documentation by running:python setup.py doc(or by simply runningmakein thedoc/folder). The documentation will be generated in the doc/html folder (you can open theindex.htmlfile to check it out using your favorite browser).Note that you need to set the environment variableFASTCHEM_DIRto the location of the folder containingFastChemif you want to use that functionality (WIP).RunningTo get help:pytmosph3r -hSee thedocumentationfor more information (read instructions inInstallationjust above to generate the doc).
Package: pytmp3
Installpip install pytmp3PYTMP3Easily download albums, playlists and songs off YouTube to MP3 formatpython -m pytmp3 [-p PLAYLIST] | [-V VIDEO]

options:
-h, --help            show this help message and exit
-a ALBUM [ALBUM ...], --album ALBUM [ALBUM ...]
                        Playlist or album search query or url
-s SONG [SONG ...], --song SONG [SONG ...]
                        Song or video search query or url
-o OUTPUT, --output OUTPUT
                        Output location for playlist, album or song. Defaults to downloads folder.

⭐ Please star! ⭐
Package: pytmpfile
pytmpfileExtremely simple helper formemory-tempfile. Intended to use in non-Python programs requiring files (e.g., GCC).Usage:from pytmpfile import get_tmp_path
import os


if __name__ == '__main__':
    with get_tmp_path(content='print("hello")\n', suffix='.py') as tmp_path:
        print(f'{tmp_path} exists inside context manager: {os.path.exists(tmp_path)}')
        print('And it has this content:')
        with open(tmp_path, 'r') as f:
            print(f.read())
    print(f'{tmp_path} exists outside context manager: {os.path.exists(tmp_path)}')Output:/run/user/1000/tmpemeg9rhm.py exists inside context manager: True
And it has this content:
print("hello")

/run/user/1000/tmpemeg9rhm.py exists outside context manager: False
Package: pytmt
pyTMT v0.5.0pyTMT returns ms2 tandem mass tag quantification values from Crux/Percolator output.See theDocumentationsfor more information.Getting StartedRequirementsInstall Python 3.7+ and pip. See instructions on Python website for specific instructions for your operating system.Install pyTMT from PyPI. We recommend using a virtual environment.$ pip install pytmtRunningLaunch pyTMT as a Python module (Usage/Help)$ python -m pytmt -hConsole entry point:$ pytmtPrerequisitespyTMT is tested in Python 3.7, and 3.8 and requires the following packages:pandas>=1.0.4
pymzml==2.5.2
tqdm>=4.46.0
scipy>=1.4.1ContributingPlease contact us if you wish to contribute, and submit pull requests to us.AuthorsEdward Lau, PhD-Code/design-ed-lauMaggie Lam, PhD-Code/design-Maggie-LamLicenseThis project is licensed under the MIT License - see theLICENSEfile for details