Saravanan666/pypi-org huggingface dataset:
Package: pytmux
pytmuxThis is a simple wrapper around tmux to allow you to define a session in a JSON
file. This is to avoid having to do all the setup of making the session with a
name, opening the windows with the right names and commands, and doing so in a
consistent manner. Also, if the session already exists, it will just open it
for you.InstallationSimply install it from pypi:pip install pytmuxor if you insist:easy_install pytmuxUsageTo list all configs:pytmux listTo run a config:pytmux run <config>To start a new configuration or edit an existing one:pytmux edit <config>To validate all of your configs:pytmux doctorConfigsJSON will be used for configs:{
    "name": "sample",
    "directory": "~/devel/sample",
    "windows": [
        {
            "name": "dev server",
            "command": "./manage.py runserver"
        }, {
            "name": "some shell"
        }, {
            "command": "emacs"
        }, {}
    ]
}Will open a tmux session namedsamplewith 4 windows open. The first will
be nameddev serverand will have./manage.py runserverrunning in
it. The second will be a window namedsome shellwhich will have the system
default shell running in it. The third will default to usingautomatic-renameand will haveemacsrunning in it. The final will be a
window withautomatic-renameand the system default shell.WhyHonestly, I don’t want to build this, but none of the currently existing tmux
wrappers seem interested in supporting not naming windows and letting tmux do
itsautomatic-renamething. Also they use YAML and I prefer JSON.Prior ArtThere are a couple that exist already but don’t make me happy.tmuxinatorteamocilHistory0.1.0 (2013-03-19)Support Python 3 (3.3 is was the tested version)0.0.9 (2013-03-16)Support setting default directory.0.0.8 (2013-03-16)Fixed initial call to Tmux.0.0.7 (2013-03-15)Rewrote the tmux calling code to be a little less verbose.0.0.6 (2013-03-07)Properly handle sessions with a dot in it.0.0.5 (2013-03-06)Added jsonschema to the requirements because I forgot it (thanks Andy McKay).Added missing comma in core.py0.0.4 (2013-03-06)Addedpytmux doctorcommand.0.0.3 (2013-03-04)Edit has a default config that it will add if you are making a new file.0.0.2 (2013-03-03)Run now has nicer error messages.0.0.1 (2013-03-03)Initial release.
Package: pytn
pytnWith the help of pytn you can use your txt file as a json file in a very simple waypytn stands for - python text notationDependenciesfilemodpip install pytnInstallation and Usageusepip install pytnMake sure that yourpipversion is updatedpip install --upgrade pip.Import the package:import pytnUpdates-edit_data()-> bug fixFunctions in the moduleFirst load the data of the file using load_txt method you need to loaddata every time you make changes to it as it is using txt as its main sourceload_txt(filename)extract_keys method helps you extract all the keys from the txt file , and returns them all in the listextract_keys(data).extract_values method helps you extract all the values from the specific keys in sequence from the txt file , and returns them in the list.extract_keys(data).extract_data method helps you extract all the key value pairs from the txt file to dictextract_data(filename)edit_data method helps you edit key's value pair , it takes filename ,key, and a value to change.edit_data(filename,key,value_to_change)remove_data method helps you remove keys and values pairremove_value(filename,key)Run LocallyClone the projectgitclonehttps://github.com/kshitij1235/pytn/tree/main/distInstallpipinstallpytnList of Functions| functions | processs| args|| ----------|---------|-----||load_txt|loads the txt data|filename||extract_keys|extract key from data|filename||extract_values|extract values from data|filename||extract_data|Extracts key value pair|filename||edit_data|Edit certain key values|filename,key,value_to_change||add_data|Help add data to the txt| filename,new key , new value||remove_data|remove key value pair|filename,key|Usage/Examplesway to write your txt{

settings: active is on

values:244

meta:[23,52,53,work]

unit_test=True

}



Rules : 

1) Dont make any sub tree to write your data do it under one tree/{}.

2)dont use ] or [ inside arrays.

4)strictly use : or = when assigning values.codefrompytnimport*###printing basic dictornaryfile="main.txt"print(extract_data(file))#printing key value pairs####extracting keys and values separatelyprint(extract_keys(file))#printing the updated key valuesprint(extract_values(file))#printing the updated values valuesOutput{'settings':'active is on','values':244,'meta':[23,52,53,'work'],'unit_test':True}['settings','values','meta','unit_test']['active is on',244,[23,52,53,'work'],True]BadgesAuthors@kshitij1235website
Package: pytnef
Note: this is obsoleted. Use tnefparse instead.Microsoft Outlook encodes the message body & file attachments using a
proprietary TNEF (Transfer Neutral Encoding Format) encoding, storing the
message body in a winmail.dat attachment. This wrapper library provides access
to TNEF-encoded message body & any attached files by interfacing with the tnef
command-line utility that is available for unixes.
Package: pytng
This package provides theTNGFileIteratorobject to allow simple Pythonic
access to data contained within TNG files.importpytngimportnumpyasnpwithpytng.TNGFileIterator('traj.tng','r')astng:positions=np.empty(shape=(tng.n_atoms,3),dtype=np.float32)fortsintng:time=ts.get_time()positions=ts.get_positions(positions)This package contains Python bindings tolibtngfor TNG file format[1] [2].
This is used by molecular simulation programs such asGromacsfor storing the
topology and results from molecular dynamics simulations.WarningThis package is under active development. The API is liable to change
between release versions.InstallationTo install using pip, simply runpipinstallpytngTo install the latest development version from source, rungitclonegit@github.com:MDAnalysis/pytng.gitcdpytngpythonsetup.pyinstallGetting helpFor help using this library, please drop by theGitHub issue tracker.
Package: pytnix
pytnixpytnix, as inpython uNIX, is an add-on toThe PNU Project, bundling itsUNIXcommands rewrites with otherPythonsoftware made by third parties.Objectives:Having some handy portable Unix tools, for example for Windows (though there areplenty of other solutionsfor that).Status:You can install what's available fromour packagewith the following console command:pipinstallpytnixCommands bundled:The PNU Projectpyfiglet- aFIGletport
Package: pytnm
PytnmA module supporting geospatial template creation, geometry conversion, and reporting for noise analyses conducted utilizing the United States Federal Highway Administration's (FHWA) Traffic Noise Model (TNM) 2.5Installationpip install pytnmCreate geospatial template for use in GIS editing softwarefrom pytnm.utils import template

output_directory = "~/projects/tnm_project"
# create receiver template
template.create_receivers(output_directory)
# create existing roadway template template
template.create_existing_roadway(output_directory)
# create noise barrier template
template.create_barrier(output_directory)Convert geospatial template files into STAMNA file, for importing into TNM 2.5from pytnm.utils import stamina

output_directory = "~/projects/tnm_project"
condition = "Existing" | "Build" | "NoBuild" # specify which noise model
receivers = "path/to/receiver.shp"
roadways = "path/to/<existing>|<proposed>_roadway.shp"
barriers = "path/to/barrier.shp"

stamina.write_stamina_file(output_directory, condition, receivers, roadways, barriers)
Package: pytnt
pytntSimple Python module for accessing .tnt NMR data files produced by TecMag's TNMR software.Usage>>>frompytntimportTNTfile>>>tnt=TNTfile('my-data-file.tnt')## The raw NMR FID data>>>fid_data=tnt.DATA>>>fid_data.dtypedtype('complex64')>>>fid_data.shape(16384,1,1,1)## The Fourier-transformed spectrum data>>>spec_data=tnt.freq_ppm()>>>spec_data.dtypedtype('float64')>>>spec_data.shape(16384,)## Some metadata>>>tnt.datedatetime.datetime(2012,11,29,15,32,3)>>>tnt.magnet_field# in Tesla2.11
Package: pytnu
pytnuAn easy interface to create text-menus withAbout The Projectpytnu is a lightweight, easy to use menu creation interface that allows you to create easy text-based menus. It supports nested menus and allows the user to easily build a user interface;(back to top)Getting StartedThis is an example of how you may give instructions on setting up your project locally.
To get a local copy up and running follow these simple example steps.PrerequisitesThis package uses no prerequisites and no external packages are necessary.InstallationInstall the package using pippipinstallpytnu(back to top)UsageImport pytnuCreate a dictionary with your options and descriptionsoptions = {name: (description, functionName)}Name is the keyword the user inputs to call the option
Description is the text that tells the user what the option does
functionName is the name of the function to be called, without the parenthesis.Create a Menu object usingMenu(options)To start the menu, useMenu.start()To re-create the menu seen above:options = {"opt1": ("Prints Foo", printFoo), "opt2": ("Prints Bar", printBar)}
menu = Menu(options)
menu.start()(back to top)MethodsMenu.addOption(name, description, funcName)Adds an option to the available options of a menu classMenu.delOption(name)Deletes an option based on the given name(back to top)
Package: pyto
pyto/pyletSimple python managerPyto abstracts over all tools you love to bring a uniform experince.Inspired bycargo,racoandyeoman.
Written in pure typed Python.Whole Python ecosystem in one command line.Even for simple projects we recommend usingpytoas it structures all the code and makes sure all your project are consistentPyto works the same on all OS and has same commands.Pyto always defaults to the newest PEPs to be shiny.
But you can ovveride behavioyr usingpyto.tomlHow setup lookspytonew

Choosebuild:[*]setuptools[]poetry[]flitCLI# initialize a new python package in current directory# from existing setup or anew (easy to convert existing project)pytoinit# create a new directorypytonewNAME# set default pythonpytosetglobalpython3# install all packagespytoinstall# uninstall all packagespytouninstall# Create new virtual envpytoenv# run scriptpytorun[--no-check]target=.# compile codepytobuild# clean env from unused dependenciespytoclean# run static checkspytochecktarget=.# generate docspytodocs# extend pytopytoaddCOMPONENT# pin python requirmentspytopin# publish packagepytopublish[--dry-run]# install locallypytoinstallLarge Toolcondapip-toolsOtherbumpverCreate PackagepyscaffoldVersioningpyenvp-@unmaintainedpewExecutioncpythonpypystacklessmicropythonrustpythonPackagingHistory:distutils -> setuptools -> ...distutils-@deprecatedin favor of setuptoolsbento-@unmaintainedBuilddistutils-@deprecatedin favor of setuptoolssetuptoolsbuildpackagingpipenvpybuilderDependeciespippipxpoetryeasy_install-@deprecatedin favor of setuptoolsrezPublishingtwineflitEnvironmentvenvvirtualenvDynamic ChecksType Checker[]Static ChecksType Checkermypypytypepyrightpyre-checkpyanalyzeSecurity ChecksbanditLintingflake8pycodestylepyflakesmccabepydocstylepylintpylamaradonblackisortpylava-@unmaintainedautopep8pycheckereradicatevultureyapfpep8ify-@unmaintainedDocumentationdoxygendocutilssphinxautodocTestingnoseunittesttoxhypothesispytestPEPsPEP 518- minimum build systemRead and Removehttps://packaging.python.org/en/latest/key_projects/#virtualenvpip install —editable .Sample Python ModulePython TypingPython Project TemplateAwesome PythonTesting & PackagingPackaging a python librarySource distribution formatPyPi publish package
Package: pytoan
Library of pytoanIntroductionInstallingpipinstallpytoanUsageExample model with MNISTfrompytoan.pytorchimportLearningimporttorchimporttorch.nnasnnimporttorchvisionimporttorchvision.transformsastransformsfrompathlibimportPath# Hyper parametersnum_classes=10batch_size=100learning_rate=0.001# MNIST datasettrain_dataset=torchvision.datasets.MNIST(root='../../data/',train=True,transform=transforms.ToTensor(),download=True)test_dataset=torchvision.datasets.MNIST(root='../../data/',train=False,transform=transforms.ToTensor())train_loader=torch.utils.data.DataLoader(dataset=train_dataset,batch_size=batch_size,shuffle=True,pin_memory=True)test_loader=torch.utils.data.DataLoader(dataset=test_dataset,batch_size=batch_size,shuffle=False,pin_memory=True)classConvNet(nn.Module):def__init__(self,num_classes=10):super(ConvNet,self).__init__()self.layer1=nn.Sequential(nn.Conv2d(1,16,kernel_size=5,stride=1,padding=2),nn.BatchNorm2d(16),nn.ReLU(),nn.MaxPool2d(kernel_size=2,stride=2))self.layer2=nn.Sequential(nn.Conv2d(16,32,kernel_size=5,stride=1,padding=2),nn.BatchNorm2d(32),nn.ReLU(),nn.MaxPool2d(kernel_size=2,stride=2))self.fc=nn.Linear(7*7*32,num_classes)defforward(self,x):out=self.layer1(x)out=self.layer2(out)out=out.reshape(out.size(0),-1)out=self.fc(out)returnoutdefaccuracy_score(output,target):withtorch.no_grad():pred=torch.argmax(output,dim=1)assertpred.shape[0]==len(target)correct=0correct+=torch.sum(pred==target).item()returncorrect/len(target)model=ConvNet(num_classes)criterion=nn.CrossEntropyLoss()optimizer=torch.optim.Adam(model.parameters(),lr=learning_rate)scheduler=torch.optim.lr_scheduler.ReduceLROnPlateau(optimizer)metric_ftns=[accuracy_score]device=[0]num_epoch=100gradient_clipping=0.1gradient_accumulation_steps=1early_stopping=10validation_frequency=1tensorboard=Truecheckpoint_dir=Path('./',type(model).__name__)checkpoint_dir.mkdir(exist_ok=True,parents=True)resume_path=Nonelearning=Learning(model=model,criterion=criterion,optimizer=optimizer,scheduler=scheduler,metric_ftns=metric_ftns,device=device,num_epoch=num_epoch,grad_clipping=gradient_clipping,grad_accumulation_steps=gradient_accumulation_steps,early_stopping=early_stopping,validation_frequency=validation_frequency,tensorboard=tensorboard,checkpoint_dir=checkpoint_dir,resume_path=resume_path)For Training and Validationlearning.train(train_loader,test_loader)Log:For Testinglearning.test(test_loader)# but not complete
Package: pytoaster
ToasterA simple python library that sends you a message on your preferred channel when your code finished running or encountered an error.Table of ContentsGetting StartedPrerequisitesInstallationUsageFrequently Asked QuestionsContributingLicenseAcknowledgementsGetting StartedTo set up Toaster, simply follow the installation and usage example.PrerequisitesThis is an example of how to list things you need to use the software and how to install them.Preferred notification channel (Telegram account/Slack Webhook URL)Python 3InstallationInstall via pippipinstallpytoasterUsageStep 1. Import methods and configure toaster usingset_config().fromtoasterimporttelegram_toast,slack_toast,set_config# for telegram notificationset_config(config_str=<your_telegram_id>,notification_channel='telegram')# for slack notificationset_config(config_str=<incoming_webhook>,notification_channel='slack')Note: You'll only have to do this once, it'll then be saved toconfig.jsonin toaster's installation path.Step 2. Add@(channeltype)_toastabove functions that you want to be notified upon completion.# telegram example@telegram_toastdeftest_func(a,b):time.sleep(5)return'Return{}and{}'.format(str(a),str(b))# slack example@slack_toastdeftest_func(a,b):time.sleep(5)return'Return{}and{}'.format(str(a),str(b))Step 3. You'll be notified by according to your preferred channel when your code finishes executing.- Telegram Example: Notification by@FreshToasterBot- Slack Example:Frequently Asked Questions1. How do I find my Telegram ID?Get your telegram ID from@FreshToasterBoton Telegram2. How do I setup my Slack Webhook?Follow theofficial instructionsfrom SlackContributingContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make aregreatly appreciated.Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestLicenseDistributed under the MIT License. SeeLICENSEfor more information.AcknowledgementsGal Shir for his cute toaster designhttps://galshir.com/
Package: pytoda
PyToDaOverviewpytoda - PaccMann PyTorchDataset ClassesA python package that eases handling biochemical data for deep learning applications
with pytorch.Installationpytodaships viaPyPI:pipinstallpytodaDocumentationPlease find the full documentationhere.DevelopmentFor development setup, we recommend to work in a dedicated conda environment:condaenvcreate-fconda.ymlActivate the environment:condaactivatepytodaInstall in editable mode:pipinstall-rdev_requirements.txt
pipinstall--user--no-use-pep517-e.Note onrdkitvsrdkit-pypiNOTE: The conda env ships with theofficialrdkitimplementation. But thepipinstallation overwrites the rdkit package with the
community-contributedPyPI packagecalledrdkit-pypi.
This is intentional becausepytodais distributed via PyPI too and most users will
thus depend onrdkit-pypi. Keep in mind thatrdkit-pypimight contain bugs or
be outdated wrtrdkit. If developers experience issues withrdkit-pypi,
they can temporarily uninstallrdkit-pypiand will then fall back on using
the properrdkitpackage.ExamplesFor some examples on how to usepytodaseehereReferencesIf you usepytodain your projects, please cite the following:@article{born2021datadriven,author={Born, Jannis and Manica, Matteo and Cadow, Joris and Markert, Greta andMill,Nil Adell and Filipavicius, Modestas and Janakarajan, Nikita andCardinale, Antonio and Laino, Teodoro and{Rodr{\'{i}}guez Mart{\'{i}}nez}, Mar{\'{i}}a},doi={10.1088/2632-2153/abe808},issn={2632-2153},journal={Machine Learning: Science and Technology},number={2},pages={025024},title={{Data-driven molecular design for discovery and synthesis of novel ligands:a case study on SARS-CoV-2}},url={https://iopscience.iop.org/article/10.1088/2632-2153/abe808},volume={2},year={2021}}@article{born2021paccmannrl,title={PaccMann$^{RL}$: De novo generation of hit-like anticancer molecules fromtranscriptomic data via reinforcement learning},journal={iScience},volume={24},number={4},year={2021},issn={2589-0042},doi={https://doi.org/10.1016/j.isci.2021.102269},url={https://www.cell.com/iscience/fulltext/S2589-0042(21)00237-6},author={Jannis Born and Matteo Manica and Ali Oskooei and Joris Cadow and Greta Markertand Mar{\'\i}a Rodr{\'\i}guez Mart{\'\i}nez}}}
Package: pytodocadet
PyToDoCADETHere is a simple and robust "ToDo" application by me:)InstallationRun the following command to install:
$pip install pytodocadetUsageTo run this program(GUI), you should open your terminal
or CMD. Then navigate to the folder that contains this package.
It depends on where you installed.
I recommend that you create a virtual environment before you install.
So that you can easily find and run the program.About the ProgramPyToDoCadet is a QT based "ToDo" application that is written in Python.
You can easily create new task.
Tasks are DRAG-DROP enabled. So you can pass it through another place that
you specified for 'under construction' or 'Done'.
Also you can give an importance level to any task that you selected before.
You can delete any task you selected.
Also you can clear all the task from the program.
Last but not least, the program remembers the last state when you close it.
So you will never lost your task.
(Before closing, program will ask you if you want to save or not.
When you selected yes, PyToDoCadet will show your tasks.)HAVE FUN and DON'T FORGET TO GIVE ME A STAR!!!pytodocadet
Package: pytodoist
<p align=”center”>
<img src=”https://imgur.com/WAXg5z7.png” title=”PyTodoist” />
</p><p align=”center”>
<a href=”https://pypi.python.org/pypi/pytodoist”><img src=”https://img.shields.io/pypi/v/pytodoist.svg?maxAge=600” alt=”PyPI” /></a>
<a href=”https://pypi.python.org/pypi/pytodoist”><img src=”https://img.shields.io/pypi/pyversions/pytodoist.svg” alt=”Python versions”></a>
<a href=”https://github.com/garee/pytodoist/blob/master/LICENSE”><img src=”https://img.shields.io/github/license/garee/pytodoist.svg” alt=”License” /></a> <a href=”https://travis-ci.org/Garee/pytodoist”><img src=”https://travis-ci.org/Garee/pytodoist.svg?branch=master” alt=”Build status”></a>
</p>PyTodoistis a Python package for interacting with [Todoist](http://www.todoist.com). It hides the underlying API calls with higher-level abstractions that make it easy to use Todoist with Python.## Quick StartInstall the latest version:`sh $ pip install pytodoist `Have fun:`python >>> from pytodoist import todoist >>> user =todoist.login('gary@garyblackwood.co.uk','pa$$w0rd')>>> projects = user.get_projects() >>> for project in projects: ...     print(project.name) ... Inbox Books to read Movies to watch Shopping Work Personal Health >>> inbox =user.get_project('Inbox')>>> task =inbox.add_task('InstallPyTodoist', ...                        priority=todoist.Priority.VERY_HIGH) >>> task.complete() `## DocumentationComprehensive online documentation can be found athttps://pytodoist.readthedocs.org
Package: pytodo_package
# pytodo
[![Gitter](https://badges.gitter.im/pytodo/community.svg)](https://gitter.im/pytodo/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)A minimal command line todo list built with Python and MongoDB![Mongo + Python](/img/mongo_python_love.png)Living in the command line is blissful. Keeping your things together sometimes isn’t. Track your tasks and deadlines with this command line app built with Python and MongoDB## Installation### Installing Python libraries
This project uses pipenv to manage dependencies, so make sure you have pipenv installed.` pip install pipenv `Clone this repository` git clonehttps://github.com/thescriptninja/pytodo.git`Use pipenv to install the dependencies` pipenv install `Create an executable file from the`script.py`file` cd pytodo/ cp script.py script sudo chmod +x script `Add the following line in .bashrc file after replacing`CLONED_REPO_PATH`with the absolute path to the cloned repository.` aliaspytodo='python3<CLONED_REPO_PATH>/pytodo/script`### Installing MongoDB
Download the required MongoDB package the package repository.
#### For Ubuntu, run the following commands` sudo apt update sudo apt install-ymongodb `#### For Fedora users, run the following commandsConfigure the dnf repository` sudo vi /etc/yum.repos.d/mongodb.repo `Install Mongodb` sudo dnf update sudo dnf installmongodb-org`Start the Mongodb service` sudo systemctl enable mongod.service sudo systemctl start mongod.service `#### For Arch users, run the following commands
Aur package at [mongodb 4.2.1-1](https://aur.archlinux.org/packages/mongodb/)### Creating a local database
Start the mongo shell and create a new database with a collection to store the todos` mongo usetodo-appdb.createCollection('todos')`## Community Channel
Join the converstaion on [Gitter](https://gitter.im/pytodo/community?utm_source=share-link&utm_medium=link&utm_campaign=share-link)