Saravanan666/pypi-org huggingface dataset:
Package: pytodo-qt
pytodo-qtA simple to-do list program.DescriptionA small cross-platform application to manage multiple to-do lists written in Python 3 and PyQt6Getting startedInstall a recent version of Python, needsat leastversion3.8For a package install you will needpiporpipxFor a manual install you will needgitand the python modulessetuptools,wheel,buildandPyQt6You can install these via your package manager or viapipInstallationInstall a package.Recommended.It can be installed from PyPi via pip or preferably pipx, all three of these methods should work$ pipx install pytodo-qt       # for a local virtualenv install
$ pip install pytodo-qt        # for a systemwide install
$ pip install --user pytodo-qt # for a user local installManual installIt can be installed by cloning the git repository and building the package:$ git clone https://github.com/berrym/pytodo-qt.git
$ cd pytodo-qt
$ python3 -m venv /path/to/pytodo-qt/venv
$ sh /path/to/pytodo-qt/venv/bin/activate  # for linux/unix, activate the appropriate script for your os
$ python3 -m build
$ /path/to/pytodo-qt/venv/bin/pip install .Executing programIf you installed a package then a script namedtodowas installed$ todo  # launches the applicationIf you followed the manual local build instructions$ /path/to/pytodo-qt/venv/bin/todo  # launches the applicationHelp$ todo --helpCopyrightCopyright 2024 Michael Berrytrismegustis@gmail.comLatest releasev0.2.5LicenseThis project is licensed under the GNU General Public License version 3, or at your option any later version.
See the COPYING file included in the git repository.
Package: pytodos
===========================pytodos===========================Command line lightweight todos... image:: https://travis-ci.org/chuanwu/PyTodos.svg?branch=master.. image:: https://badge.fury.io/py/pytodos.svg:target: https://badge.fury.io/py/pytodosInstall::pip install pytodosUsage::add: 增加任务list: 显示未完成的任务以及一个礼拜以内处理完的任务got x: x表示未完成任务的编号，将其标记为完成.. image:: https://ooo.0o0.ooo/2017/04/19/58f729d498fa7.pngAttention::文件保存在/tmp/data.txt，请注意不要误删了，否则您的数据会丢失。
Package: pytodotxt
pytodotxtA tiny library to access todo.txt-like task lists.InstallationTo install pytodotxt, you can follow these steps to clone the repository,
and install the program.pip install pytodotxtThat’s all there is to do.DocumentationYou can find the full documentation athttps://vonshednob.cc/pytodotxt/doc/.Example usageHere’s an example how to open a todo.txt file and print the description of all
tasks that are not marked as completed:import pytodotxt


todotxt = pytodotxt.TodoTxt('todo.txt')
todotxt.parse()

for task in todotxt.tasks:
    if not task.is_completed:
        print(task.description)Here is how you add a new task to an existing todo.txt file:import datetime

import pytodotxt

todotxt = pytodotxt.TodoTxt('todo.txt')
todotxt.parse()

task = pytodotxt.Task()
task.parse('This is a new task')
task.creation_date = datetime.date.today()

todotxt.tasks.append(task)

todotxt.save()
Package: pytohtml
Installation$pipinstallpytohtmlExampleQR-Code Generator Source Code.Simple Chat Source Code.Syntaxfrompy2html.elementsimporthtml,head,body,meta,title,h1print(html(lang="en")[head[meta(charset="UTF-8"),meta({"http-equiv":"X-UA-Compatible","content":"IE=edge"}),meta(name="viewport",content="width=device-width, initial-scale=1.0"),title["py2html"]],body[h1["Hello, Py2HTML!"]]].render())*formatted output<htmllang="en"><head><metacharset="UTF-8"></meta><metahttp-equiv="X-UA-Compatible"content="IE=edge"></meta><metaname="viewport"content="width=device-width, initial-scale=1.0"></meta><title>py2html</title></head><body><h1>Hello, Py2HTML!</h1></body></html>
Package: pytohub
PYTOHubPYTOHub is a program that can directly connect to your lego spike prime or mindstorms hubHow to downloadHow to download PYToHubRun this in your terminal (Command prompt)pip install pytohubPressenterwhen you see your hub's serial port, Make sure that you setted up your lego hub for pytohub to connect.How to run pytohubYou can directly run it in the terminalpython -m pytohubHow to setup your lego hubYou need to setup your lego hubYou can directly run it in the terminalpython -m pytohub --download
Package: pytoimage
pytoimageNote: pytoimage is still in its initial stages, for now, you can normally transform your code in an image, choosing the backgroud and the text color. But, all code is currently with a single color, not differentiating anything, such as keywords, strings, functions... this will come in future versions.DownloadYou can simply:pipinstallpytoimageOr you can also:Clone the repository to your local machine.Enter the directory.Download necessary modules/libraries.gitclonehttps://github.com/gabrielstork/pytoimage.gitcdpytoimage
pipinstall-rrequirements.txtExamplefrompytoimageimportPyImageThePyImageclass has three parameters:path(the Python code path),background(optional, the background color of the image) andfont(optional, the path of a.ttffont).code=PyImage('pytoimage/pytoimage.py',background=(15,15,15),font='fonts/Inconsolata.ttf')The following method is optional, it allows you customize the theme of your image (see initial note).palette={'line':(149,149,149),'normal':(255,255,255),}code.set_color_palette(palette=palette)To generate the image, you can simply call the method with no arguments, thestartandendare optionals, these are the code intervals.code.generate_image(start=39,end=51)Then you can see and save the generated image.code.show_image()code.save_image('images/example.png')
Package: pytojcamp
PyToJCAMPPython to JCAMP converter. Inspired byPyToJCAMP.Some tools work well with theJCAMPformat.
This package allows converting Python data structures to JCAMP, this can make it easier for Python based web services to interact with theELN.InstallationTo get the latest development version from the head usepip install git+https://github.com/cheminfo-py/pytojcamp.gitto install the latest stable release usepip install pytojcampUsageSee the example notebooks, which you cantry out on Binder.x/y dataFor simple x/y data you can usefrompytojcampimportfrom_xyjcamp_string=from_xy((x,y))multicolumn dataFor multicolumn data you can usefrompytojcampimportfrom_dictdata_dictionaries={'x':{'data':[1,2,3],'type':'INDEPENDENT','unit':'cm'},'y':{'data':[3,2,3],'type':'DEPENDENT','unit':'h'},'z':{'data':[3,2,3],'type':'DEPENDENT','unit':'kg'}}jcamp_string=from_dict(data_dictionaries)
Package: pytojs
Translates JavaScript to Python code. pytojs is able to translate and execute virtually any JavaScript code.pytojs is written in pure python and does not have any dependencies. Basically an implementation of JavaScript core in pure python.import pytojsf = pytojs.eval_js( “function $(name) {return name.length}” )f(“Hello world”)# returns 11Now also supports ECMA 6 through pytojs.eval_js6(js6_code)!More examples at:https://github.com/PiotrDabkowski/pytojs
Package: pytokei
pytokeiPytokei is a python binding totokei:Tokei is a program that displays statistics about your code. Tokei will show the number of files, total lines within those files and code, comments, and blanks grouped by language.This wrapper allows to obtain the same reports directly from python.$python>>>importpytokei>>>fromrichimportprint>>>langs=pytokei.Languages()>>>langs.get_statistics(["."],["tests/data","requirements"],pytokei.Config())>>>print(langs.report_compact_plain()){'YAML':{'blanks':6,'code':63,'comments':0,'files':1,'lines':69},'Python':{'lines':376,'blanks':89,'files':2,'code':280,'comments':7},'Makefile':{'code':18,'lines':26,'comments':0,'blanks':8,'files':1},'Markdown':{'code':0,'blanks':37,'files':10,'comments':52,'lines':89},'Rust':{'blanks':23,'comments':23,'code':317,'lines':363,'files':7},'TOML':{'code':14,'comments':2,'lines':20,'blanks':4,'files':2}}It includes a small CLI for simple use cases (run against the pytokei's folder):$pytokeipytokeipytokei┏━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━┳━━━━━━━━━━┳━━━━━━━━┓┃ language   ┃ Files ┃ Lines ┃ Code ┃ Comments ┃ Blanks ┃┡━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━╇━━━━━━━━━━╇━━━━━━━━┩│ Rust       │     9 │  1011 │  846 │       49 │    116 ││ Python     │     5 │   568 │  436 │       13 │    119 ││ Markdown   │    11 │   423 │  123 │      179 │    121 ││ Plain Text │     4 │   133 │    0 │      133 │      0 ││ TOML       │     3 │    75 │   59 │        6 │     10 ││ YAML       │     1 │    69 │   63 │        0 │      6 ││ Makefile   │     1 │    26 │   18 │        0 │      8 ││ Dockerfile │     1 │    16 │    7 │        3 │      6 ││ Shell      │     3 │    12 │   12 │        0 │      0 ││ Autoconf   │     3 │     7 │    7 │        0 │      0 │└────────────┴───────┴───────┴──────┴──────────┴────────┘For more information abouttokei, please visit the original repo.InstallationpipinstallpytokeiRequires Python >= 3.7.Binaries are available for:Linux:x86_64,aarch64,i686,armv7l,musl-x86_64&musl-aarch64MacOS:x86_64&arm64(except python 3.7)Windows:amd64&win32Otherwise, you can install from source which requires Rust stable to be installed.Why this library?Wanted to practice rust, and taking this library to python seemed like a good opportunity. It's awesome, and maybe more people coming from python will find something useful to do with it.But really? Just for fun :)DocumentationWhat times should you expect?RunningLanguages.get_statisticsagainstcpythontakes a little less than 200 milliseconds.Some more info should be found in thedocs.DevelopmentYou will need:maturinto compile the librarymaturin develop/make developto compile the code.From python side:Runmake install-devinside a virtual environment,make test,make mypyandmake formatto ensure everything is as expected, andmake docsto build the documentation.There are some problems when building the docs with mkdocstrings, a reminder is in the followinggithub issue. For the moment, it seems that the best option is to remove the .so file and build the docs without it.To create a new release:Update the version inCargo.toml.Create a new tag to run the github action workflow.git push --atomic origin main tag-name
Package: pytokenbucket
pyTokenBucketA token bucket implementation for Python which only uses the standard
library.Free software: MIT licenseDocumentation:https://pytokenbucket.readthedocs.io.FeaturesThreaded token bucket which refreshes tokens at a given rate.CreditsThis package was created withCookiecutterand thecmeister2/cookiecutter-pypackageproject template.ChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog,
and this project adheres toSemantic Versioning.UnreleasedChanged0.1.1- 2018-12-19ChangedMove from rst to markdown for CHANGELOG and README.Remove dependence onsix.0.1.0- 2018-12-18AddedInitial commit of all code.
Package: pytoken-zzl
A sample Python projectA sample project that exists as an aid to thePython Packaging User
Guide'sTutorial on Packaging and Distributing
Projects.This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.The metadata for a Python project is defined in thepyproject.tomlfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written usingreStructuredTextormarkdownwith the appropriatekey set. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.
Package: pytoki
AboutToki library was originally developed by Tomasz Śniatowski and Adam Radziszewski at Wroclaw University of Science and Technology. The main purpose of the library was to provide fastSRX-based tokenizer. The following python library is a set of python bindings to C++ toki that has been further developed atAlphamoon.Original toki has been released under GNU LGPL 3.0. The sources may be obtained from the git repositories:git clone http://nlp.pwr.wroc.pl/corpus2.git # contains pwrutils library that is needed for building toki
git clone http://nlp.pwr.wroc.pl/toki.gitTo build the codes you will need CMake 2.8 or later. Besides, you will need:ICU 4.2Boost 1.41 or later (tested with 1.41 and 1.42)Loki (libloki-dev)libxml++2.6 (for SRX support)libpwrutils from corpus2 repository (its build process is based on CMake, see the project site)To create a working tokeniser, instantiateToki::LayerTokenizer. There are several constructors available; the simplest one assumes using the default configuration (for Polish). To access a named configuration, useToki::get_named_config(config_name) and pass the acquired object toToki::LayerTokenizerconstructor.To create a working tokeniser with sentence-splitter, first instantiate aToki::LayerTokenizerobject and then wrap aToki::SentenceSplitteraround it. The sentencer object contains a convenient has_more-get_next_sentence interface. The default config loads sentence-splitting rules so is suitable for this purpose.
NOTE: when using a custom config, check whether it contains working sentence-splitting rules. If it doesn't,Toki::SentenceSplitterwill buffer all the input and finally produce an enormous sentence containing all the tokens.ExamplesFor now, Python interface is simple and allows only for sentence splitting and tokenizing within the sequence with polish as a default language.Sentence splitting:importtokitokenizer=toki.Toki()tokenizer.get_all_sentences("To jest zdanie. To jest np. inne zdanie.")Sentence tokenizing:importtokitokenizer=toki.Toki()tokenizer.get_all_sentences_tokenized("To jest zdanie. To jest np. inne zdanie.")More languages will be supported in upcoming releases.It is recommended to build package from source if possible to make use of AVX and other CPU instruction. Package originally has been built withcore2optimization so any CPU older than that or which does not haveMMX,SSE,SSE2,SSE3andSSSE3must build package from source.
Package: pytokio
pytokio is a reference implementation of the Total Knowledge of I/O (TOKIO)
framework designed to simplify the process of holistically analyzing the
performance of parallel storage systems commonly deployed in high-performance
computing.  It provides connectors to interface with many common monitoring
tools, analysis routines to derive insight from multiple tools, and example
applications that demonstrate simple but powerful performance analyses enabled
by this holistic approach.pytokio is made available under a modified BSD license.  Seehttps://pytokio.readthedocs.io/en/latest/for the full documentation.
Package: pytolino
pytolinoA client to interact (login, upload, delete ebooks, etc..) with the tolino cloud with python. Most of the code is forked fromhttps://github.com/darkphoenix/tolino-calibre-syncOne difference is that I aim to create a python package from it and to put it on pypi, so that one can use this python module in other projects.InstallationpipinstallpytolinoUsageBefore being able to send requests, you need to register your computer on which you will run the code:frompytolino.tolino_cloudimportClient,PytolinoExceptionclient=Client()client.login(USERNAME,PASSWORD)client.register()# do this only once!client.logout()You can then upload, add to a collection or delete ebook on your cloud:frompytolino.tolino_cloudimportClient,PytolinoExceptionclient=Client()client.login(USERNAME,PASSWORD)ebook_id=client.upload(EPUB_FILE_PATH)# return a unique id that can be used for referenceclient.add_collection(epub_id,'science fiction')# add the previous book to the collection science-fictionclient.delete_ebook(epub_id)# delete the previousely uploaded ebookinventory=client.get_inventory()# get a list of all the books on the cloud and their metadataclient.upload_metadata(epub_id,title='my title',author='someone')# you can upload various kind of metadataclient.logout()if you want to unregister your computer:frompytolino.tolino_cloudimportClient,PytolinoExceptionclient=Client()client.login(USERNAME,PASSWORD)client.register()# now you will not be able to upload books from this computerclient.logout()Featureslogin to tolino partner (for now works only with buecher.de)register deviceunregister deviceupload ebookdelete ebook from the cloudadd a book to a collectiondownload inventoryupload metadatamore to come…LicenseThe project is licensed under GNU GENERAL PUBLIC LICENSE v3.0
Package: pytomaton
pytomaton: State Machines in Python=========Brief-----Often, a state machine is a convenient way to implement a stateful protocol, butthey often involve a lot of messy boilerplate for managing how you transitionfrom one state to the next, or what exactly happens when you enter a state.`pytomaton` was created to reduce this boilerplate code.Just as in a theoretical automaton, a `pytomaton.statemachine` has a list ofstates, a start state. At any given time, a state machine is in one singlestate. The programmer can invoke `statemachine.transition(new_state_name)` totransition to a new state; when this happens, the state machine checks to see ifthere are any actions which are triggered by this transition. Currently, actionscan be triggered by entering a specific state (`on_enter`), or by transitioningfrom one specific state to another (`on_transition`). Methods are decorated asbeing triggered by transitions, as shown in the example below.Example-------from pytomaton import statemachine, on_transition, on_enterclass ConnectionMachine(statemachine):states = ['waiting_for_connection', 'waiting_for_ready', 'all_ready']start_state = 'waiting_for_connection'def on_connect(self):self.transition('waiting_for_ready')@on_transition('waiting_for_connection', 'waiting_for_ready')def send_ready_prompt(self):self.broadcast('are you ready?')def receive_ready_confirm(self):if self.all_ready():self.transition('all_ready')@on_enter('all_ready')def send_all_ready(self):self.broadcast('everyone is ready!')In this example, we define a `ConnectionMachine` that has three states. Itstarts in the `waiting_for_connection` state. When a user connects, intransitions to the `waiting_for_ready` state, which triggers a call to`send_ready_prompt`. When a user confirms that they're ready, we transition tothe `on_ready` state, which triggers a call to `send_all_ready`.
Package: pytometry
Pytometry: Flow & mass cytometry analyticsThis package provides efficient and scalable handling of flow and mass cytometry data analysis. It providesthe functionality to read in flow data in the fcs file format asanndataobjectsflow and mass cytometry specific preprocessing toolsaccess to the entirescanpyworkflow functionalityGPU support throughrapidsFollowhttps://twitter.com/marenbuettnerfor updates.For the code enthusiasts: Find our code base onGithub.InstallationYou can installpytometryviapipfromPyPI:pip install pytometryor from GitHub:pip install git+https://github.com/buettnerlab/pytometry.gitUpdatesAugust 28th 2023: New release with various fixes and improvements.October 12th 2022: First public release announcement onTwitterCitationPytometry is currently a pre-print onbioRxiv.
Package: py-tomfoolery
TomfooleryThis is aSoundCloud/Bandcamp/YouTubedownloader.InstallationGetffmpegbinary and add it to your path manually, orcondainstall-canacondaffmpegInstall tomfoolery.pipinstallpy-tomfooleryUsageEnter following in the terminal.tomfooleryConfigurationMenuFile.Directories.SoundClouddownloads directory.Bandcampdownloads directory.YouTubedownloads directory.Config.Organize saved songs in folders by theartist.Organize saved songs in folders by thealbum.Metadata editingArtist/Title/Albumcan be edited by double-clicking a corresponding entry.The change will reflect both in the filename and in the file metadata.AcknowledgementsTomfoolery is using bits and pieces from other repos, off the top of my head:pytube/pytube,Miserlou/SoundScrape,flyingrub/scdl,better-ffmpeg-progress.
Package: py-to-mindustry
py_to_mindustryTranslator from Python to Mindustry processor languageThe following features are currently supported:All built-in commands in MindustryArbitrarily complex mathematical and logical expressionsFollowing keywords:False,None,True,and,break,continue,def,elif,else,for,global,if,is,lambda,not,or,pass,return,whileUsagepython -m pip install py_to_mindustryfrompy_to_mindustryimportpy_to_mindustryprint(py_to_mindustry(your_program_text))How to use Mindustry commands...
Package: pytoml
DeprecatedThe pytoml project is no longer being actively maintained. Consider using thetomlpackage instead.pytomlThis project aims at being a specs-conforming and strict parser and writer forTOMLfiles.
The library currently supportsversion 0.4.0of the specs and runs with Python 2.7+ and 3.5+.Install:pip install pytomlThe interface is the same as for the standardjsonpackage.>>> import pytoml as toml
>>> toml.loads('a = 1')
{'a': 1}
>>> with open('file.toml', 'rb') as fin:
...     obj = toml.load(fin)
>>> obj
{'a': 1}Theloadsfunction accepts either a bytes object
(that gets decoded as UTF-8 with no BOM allowed),
or a unicode object.Usedumpordumpsto serialize a dict into TOML.>>> print toml.dumps(obj)
a = 1testsTo run the tests update thetoml-testsubmodule:git submodule update --init --recursiveThen run the tests:python test/test.py