Saravanan666/pypi-org huggingface dataset:
Package: temporalvector
Advanced Simulation: Temporal VectorDescriptionThis package was created to support Monte Carlo simulations that require 1-D numerical value vectors of data
across time.  The vectors are time-aware, and can be expanded or condensed to different time periods using different
aggregation methods (max, min, cumulative).  Update methods are provided to write the entire vector, update a
specific range, or pass a list of index, range, value lines.  Methods to add, multiply, and divide vectors are provided.
For speed, the underlying vector is based on Numpy.This is used to abstract the underlying vector functionality to make the simulation code simpler.Getting StartedDownload links:HTTPS clone URL:https://github.com/crmckay55/sim_pkg_temporal_vector.gitpip install temporalvectorHow to use this packageInstantiating and using a vector:importtemporalvector.temporal_vectorastvimporttemporalvector.temporal_enumsastve# Create a vector with 1 day of duration, stored in hourly format,# with cumulative aggregation, 1 default value.  Further calls must recognize base vector is in Hour formatv=tv.TemporalVector(1,tve.VectorTimescales.Day,tve.VectorTimescales.Hour,tve.VectorAggregations.Cumulative,1)# this makes a numpy array of length 24, value of 1# retrieve the numpy vector values in days, and hours of duration (cumulative)v_days=v.get(tve.VectorTimescales.Day)# returns numpy array of length 1, value 24 (because cumulative aggregation)v_hours=v.get(tve.VectorTimescales.Hour)# returns numpy array of length 24, value 1# update the vector for the first 12 hours (index 0 to 11), so now half zeroes, half 1'sv.update_by_index(start_index=0,end_index=12,value=0,timescale=tve.VectorTimescales.Hour)length=v.length(tve.VectorTimescales.Hour)# update list to make first 12 hours 1, last 12 hour 0bulk_update=[[0,12,1],[12,length-1,0]]v.update_bulk(bulk_update,tve.VectorTimescales.Hour)# Should return cumulative vector [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]v_cumulative=v.get_cumulative(tve.VectorTimescales.Hour)Other VectorAggregations include Minimum and Maximum, if you want only the minimum and maximum values when
updating the timescale on a vector.Other functionsMultiply, divide, add, and subtract a vector.  I didn't use overloading at this time because the functions are meant
to be an in-place operation.  Functions can accept a list, another TemporalVector, or a single value.
Package: temporary
Context managers for managing temporary files and directories.withtemporary.temp_dir()asd:...withtemporary.temp_file(content='hello')asf:...Installation:$pipinstalltemporaryTemporary Directory ExamplesThe temporary directory is created when entering the context manager, and
deleted when exiting it:>>>importtemporary>>>withtemporary.temp_dir()astemp_dir:...asserttemp_dir.is_dir()>>>assertnottemp_dir.exists()This time let’s make the temporary directory our working directory:>>>importos>>>withtemporary.temp_dir(make_cwd=True)astemp_dir:...assertstr(temp_dir)==os.getcwd()>>>assertnotstr(temp_dir)==os.getcwd()The suffix, prefix, and parent_dir options are passed to the standardtempfile.mkdtemp()function:>>>withtemporary.temp_dir()asp:...withtemporary.temp_dir(suffix='suf',prefix='pre',parent_dir=p)asd:...assertd.parent==p...assertd.name.startswith('pre')...assertd.name.endswith('suf')This function can also be used as a decorator, with thein_temp_diralias:>>>@temporary.in_temp_dir()...defmy_function():...assertold_cwd!=os.getcwd()...>>>old_cwd=os.getcwd()>>>my_function()>>>assertold_cwd==os.getcwd()Temporary File ExamplesThe temporary file is created when entering the context manager and
deleted when exiting it.>>>importtemporary>>>withtemporary.temp_file()astemp_file:...asserttemp_file.exists()>>>assertnottemp_file.exists()The user may also supply some content for the file to be populated with:>>>withtemporary.temp_file('hello!')astemp_file:...withtemp_file.open()asf:...assertf.read()=='hello!'The temporary file can be placed in a custom directory:>>>withtemporary.temp_dir()astemp_dir:...withtemporary.temp_file(parent_dir=temp_dir)astemp_file:...asserttemp_file.parent==temp_dirIf, for some reason, the user wants to delete the temporary file before
exiting the context, that’s okay too:>>>withtemporary.temp_file()astemp_file:...temp_file.unlink()
Package: temporarycheck-csdt
[![Build Status](https://travis-ci.org/CSDTs/django_teams.svg?branch=master)](https://travis-ci.org/CSDTs/django_teams)[![Updates](https://pyup.io/repos/github/CSDTs/django_teams/shield.svg)](https://pyup.io/repos/github/CSDTs/django_teams/)[![CoverageStatus](https://coveralls.io/repos/github/CSDTs/django_teams/badge.svg?branch=master)](https://coveralls.io/github/CSDTs/django_teams?branch=master)This project aims to provide an easy-to-use method for restricting row-based access to models based on “teams”.
Teams control objects, and can specify who is allowed to read, create, update, and delete objects.This repository originally written by chuck211991, modified for rpi_csdt_community and reused for csdt.org.
Package: temporary-email
T_email=====临时邮箱接口返回邮箱地址和邮件内容,用做接收验证码Quick start-----------pip instll temporaty_email.. code:: pythonfrom temporaty_email.temporary_email import TemporaryEmailt_email = TemporaryEmail()print(t_email.get_email_address())while True:if t_email.check_received_email():content = t_email.get_email_content()print(content)breakPlatform: UNKNOWNClassifier: Intended Audience :: DevelopersClassifier: License :: OSI Approved :: BSD LicenseClassifier: Operating System :: OS IndependentClassifier: Programming Language :: Python :: 3.5Classifier: Topic :: Internet :: WWW/HTTPClassifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Package: temporary-mail
A package that allows to create temp mail and receive emails from it.Example:from pytempmail import TempMail
from time import sleep

tm=TempMail()
# Print Current Mail
print(f'Email: {tm.email}')

printed_mails=[]

print('All Emails are:')
while True:
	all_mails=tm.get_mails()
	for mail in all_mails:
		if mail.id not in printed_mails:
			# Adding to the list, so it will not print it again
			printed_mails.append(mail.id)
			print(f'From: {mail.from_name} - {mail.from_addr}')
			print(f'Subject: {mail.subject}')
			print(f'Body: {mail.text}')
			# you can use mail.description to print short text
			# mail.html returns only html. use it if you're on web
			print('\n-  -  -  -  -  END  -  -  -  -  -\n')
	sleep(5)
Package: temppack
Using this module u can convert any units of temperature from one to another.This is a highly precise module with simple ways to convert temperature from one unit to another.There are many instances in a language in which u need to convert scientific base units from one to another.Hey!! So you are on the Right track.
Do not waste your time in simply writing unnecessary codes.
Download it!!For eg: If you want to convert 50 rankine to celsius:
Just import the module. There we have our built-in-functions.
For this one use celstorank(50) <—– Note you need to pass the value of the base unit as parameter
& get the converted unit as your result.However, passing a non-int or a non-float value may raise an error.
Try avoiding such errors.
Rest Everything is miracle!!So Guys!!!
Just move on for installing this awesome temp conversion pack.Developer:
Kailash Sharma
Package: temppath
temppathProvides a quick way to get apathlib.Pathfile in the system-defined
temporary space.temppathdoesnotwraptempfile.NamedTemporaryFile,
as that automatically deletes on close, and does not allow the same file to be
written, closed, then readin Windows,
which is inconsistent with the Unix implementation.  Sincetemppathprovidespathlib.Pathobjects, this is not an issue.UsageThere is a nice context manager, which will remove the path for you.fromtemppathimportTemporaryPathContextwithTemporaryPathContext()ast:t.write_text('the quick brown fox jumps over the lazy dog')...do_something_awesome_that_reads(t)# The file is removed when you leave the `with` context.You also have the option to just clean it up yourself if you need more control.fromtemppathimportTemporaryPatht=TemporaryPath()t.write_text('the quick brown fox jumps over the lazy dog')...do_something_awesome_that_reads(t)...t.unlink()
Package: temp-path
temp_pathThis is a package to allow you to add a folder to the path temporarily.Often when you deal with other people's code, it's not set up to be importable /
packaged. This tool allows you to import from those files anyways, without
having to permanently modify your path.Simply run:fromtemp_pathimporttemp_pathwithtemp_path('../someone/elses/code'):importtheir.messy.codetheir.messy.code.use()Of course, this is not just for importing python modules but also for other
stuff you might need on your path.
Package: temppathlib
temppathlibTemppathlib provides wrappers aroundtempfileso that you can directly use them together withpathlibmodule.
We found it cumbersome to converttempfileobjects manually topathlib.Pathwhenever we needed a temporary
file.Additionally, we also provide:a context managerremoving_treethat checks if a path exists and recursively deletes it
by wrappingshutil.rmtree.a context managerTmpDirIfNecessarythat creates a temporary directory if no directory is given and otherwise
uses a supplied directory. This is useful when you want to keep some of the temporary files for examination
after the program finished. We usually specify an optional--operation_dircommand-line argument to our programs
and pass its value to theTmpDirIfNecessary.If you need a more complex library to transition from string paths topathlib.Path, have a look atruamel.std.pathlib.Usageimportpathlibimporttemppathlib# create a temporary directorywithtemppathlib.TemporaryDirectory()astmp_dir:tmp_pth=tmp_dir.path/"some-filename.txt"# do something else with tmp_dir ...# create a temporary filewithtemppathlib.NamedTemporaryFile()astmp:# write to ittmp.file.write('hello'.encode())tmp.file.flush()# you can use its path.target_pth=pathlib.Path('/some/permanent/directory')/tmp.path.name# create a temporary directory only if necessaryoperation_dir=pathlib.Path("/some/operation/directory)withtemppathlib.TmpDirIfNecessary(path=operation_dir)asop_dir:# do something with the operation directorypth=op_dir.path/"some-file.txt"# operation_dir is not deleted since 'path' was specified.withtemppathlib.TmpDirIfNecessary()asop_dir:# do something with the operation directorypth=op_dir.path/"some-file.txt"# op_dir is deleted since 'path' argument was not specified.# context manager to remove the path recursivelypth=pathlib.Path('/some/directory')withtemppathlib.removing_tree(pth):# do something in the directory ...passInstallationCreate a virtual environment:python3-mvenvvenv3Activate it:sourcevenv3/bin/activateInstall temppathlib with pip:pip3installtemppathlibDevelopmentCheck out the repository.In the repository root, create the virtual environment:python3-mvenvvenv3Activate the virtual environment:sourcevenv3/bin/activateInstall the development dependencies:pip3install-e.[dev]We use tox for testing and packaging the distribution. Assuming that the virtual environment has been activated and
the development dependencies have been installed, run:toxWe also provide a set of pre-commit checks that lint and check code for formatting. Run them locally from an activated
virtual environment with development dependencies:./precommit.pyThe pre-commit script can also automatically format the code:./precommit.py--overwriteVersioningWe followSemantic Versioning. The version X.Y.Z indicates:X is the major version (backward-incompatible),Y is the minor version (backward-compatible), andZ is the patch version (backward-compatible bug fix).
Package: temprint
temprinttemprintis an acronym fortemporary printThis package provides an easy way to output temporary prints intended to be
overwritten by other messages. Use it if you want to avoid flooding your terminal
with old prints.UsageInstall it with$ pip install temprintNow you can use thetemprintfunction, as in:fromtimeimportsleepfromtemprintimporttemprintmsgs=['a short message','a slightly longer message','a tiny msg','a very big message. it is so big that it cannot fit in your '+'terminal width and temprint will behave as a regular print','now a short message again','and a shorter message']formsginmsgs:temprint(msg)sleep(2)You should see the messages being printed and then erased iteratively.If the message is longer than your terminal width,temprintwill behave as
the regular built-inprintfunction.Thetemprintfunction can receive a series of objects to be printed and a
separator:>>> temprint('first', 'second', 'third', sep='/')
first/second/third
Package: temprl
temprlFramework for Reinforcement Learning with Temporal Goals defined by LTLf/LDLf formulas.Status:development.InstallInstall the package:from PyPI:pip3 install temprlwithpipfrom GitHub:pip3 install git+https://github.com/whitemech/temprl.gitor, clone the repository and install:git clone htts://github.com/whitemech/temprl.git
  cd temprl
  pip install .TestsTo run tests:toxTo run only the code tests:tox -e py3.7To run only the linters:tox -e flake8tox -e mypytox -e black-checktox -e isort-checkPlease look at thetox.inifile for the full list of supported commands.DocsTo build the docs:mkdocs buildTo view documentation in a browser:mkdocs serveand then go tohttp://localhost:8000Licensetemprl is released under the GNU Lesser General Public License v3.0 or later (LGPLv3+).Copyright 2020-2022 Marco FavoritoAuthorsMarco Favorito
Package: temps
## Introduction`temps` is a python module containing context managers for creating andcleaning up temporary files and directories.This package is _alpha_ and its API is not stable.Why do I never use the `tempfile` module?- I am responsible for removing files and dirs tempfile creates, which createslots of boilerplate whenever I use it.- There is no context manager for temp dirs.- When using `mkstemp()`, I get an open file descriptor, not a file object,that I have to close.- The context manager for temp files contains statements like thisfrom the tempfile docs: "Whether the name can be used to open the file asecond time, while the named temporary file is still open, varies acrossplatforms"- I do not get to choose the file perms of files and dirs I create.What do I like about this module?- It has a context manager for creating a temp dir and another for temp files.- The context manager cleans up the dir or file upon context exit, not upon fileclosure.- No ambiguity about whether you can or cannot open a file twice.- You can set the permissions of the temp file or dir to what you want.- It is very clear what the implementation is:- directories are created and the path is returned.- files are not created, since you'll want to do that in a `withopen(filename) ...` statement, and the path is returned.- directories and files are cleaned up by the context managers.- file and dir names are generated using the uuid module, which presumablywill avoid race conditions.## ContributeFeel free to make a pull request on github.## Requirements- Probably Python 2.7 (since that is the only version it has been tested with.)## Installation### Install from pypi.python.orgDownload and install using pip:pip install temps### Install from github.comUsing github, one can clone and install a specific version of the package:cd ~git clone git@github.com:todddeluca/temps.gitcd tempspython setup.py install## UsageCreating a working dir for subprocesses:with temps.tmpdir() as workdir:with open(os.path.join(workdir, 'datafile'), 'wb') as fh:fh.write(data)subprocess.call('compute.sh {}'.format(workdir), shell=True)with open(os.path.join(workdir, 'outfile')) as fh:print fh.read()Creating a temp file for a transform and upload:with temps.tmpfile() as transformed_path:transform(input_path, transformed_path)upload(transformed_path, destination)The default values when parameters are not specified, are stored in variablesthat are set using environment variables if available or a default valueotherwise.  Here is a table listing the variable, the environment variablechecked, and the default value:Variable, ENV_VAR, DefaultTEMPS_DIR, TEMPS_DIR, tempfile.gettempdir()TEMPS_PREFIX, TEMPS_PREFIX, ''TEMPS_SUFFIX, TEMPS_SUFFIX, ''TEMPS_MODE, TEMPS_MODE, '0777'
Package: temp-ssh
=======temp_ssh=======About------temp_ssh is a tool to allow your current public ip address ssh access to a provided security group. It speeds up the process of temporary ssh access.Example--------temp_ssh is a command line tool, below are example argurements.CLI::usage: temp_ssh [ARGS] ....optional arguments:--sg SG                       Provide the security group to be updated--sg-clean-up SG_CLEAN_UP     Provide an security group to be cleaned up--env ENV                     Provide an enviroment file--env-clean-up ENV_CLEAN_UP   Provide an environment to be cleaned uptemp_ssh --env SandboxTo make use of an environment file, populate config.json.example and convert the file to config.json. --env by deafult looks for config.json in the directory it is ran fromInstall---------::$ pip install temp_sshTo Do-----------[] Create lambda for clean-up
Package: tempstorage
OverviewA storage implementation which uses RAM to persist objects, much like
MappingStorage. Unlike MappingStorage, it needs not be packed to get rid of
non-cyclic garbage and it does rudimentary conflict resolution. This is a
ripoff of Jim’s Packless bsddb3 storage.Changelog6.0 (2023-03-24)Add support for Python 3.10, 3.11.Drop support for Python 2.7, 3.5, 3.6.5.2 (2021-07-05)Update package configurationPackage is now officially undeprecated because the data corruption issue -
that was the reason for its deprecation - has been understood and fixed. See
(#16).Add support for Python 3.8 and Python 3.9.5.1 (2019-08-15)Package is now officially deprecated as it was broken for many years. This
was/ is common knowledge in the zope community, but was not documented
anywhere and thus this package was still used by many community members
without knowing this. See
(#8)
(#12)5.0 (2019-05-10)Update PyPy version.Drop Python 3.4 support.Add support for Python 3.7.Avoid RuntimeError in _takeOutGarbage. Seeissue 7.4.0.1 (2017-11-27)Raise POSKeyError instead of KeyError in loadBefore.4.0 - 2017-03-09Drop Python 3.3 compatibility, add Python 3.6 compatibility.Require ZODB 5.0 or newer.Usestorage._lockas a context manager.Declare PyPy compatibility.3.0 - 2016-04-03Python 3.3-3.5 compatibility.2.12.2 - 2012-10-14Explicitly state distribution dependencies instead of re-using the
ZODB test requirements.2.12.1 - 2010-09-29Disabledcheck_tid_ordering_w_committest from BasicStorage, as it uses
invalid test data.2.12.0 - 2010-09-25Require at least ZODB 3.9 and adjusted method signatures to disuse versions.Expanded dependency on ZODB3 to include the test extra.2.11.3 - 2010-06-05Approximate PEP8 compliance.Split out the ZODB protocol tests from the tests specific to the module.
Make the local tests use “normal” unittest conventions.Comply with repository policy.Clean imports, docstrings;  add an instance-level hook for GC parms.Fix a test failure due to never-unghostified root in second connection.2.11.2 - 2009-08-03Added change log and readme.Lauchpad #143736, #271395: fixed AttributeError’ on _ltid in TempStorage2.11.1 - 2008-08-05Initial release as a stand-alone package.
Package: tempstore
A simple container for handling multiple tempfilesExample:>>>importtempstore>>>s=tempstore.TempStore('somedata')>>>s.create('banana')'/var/folders/ng/c57k6x7n1qn9f6hw_hw4zrlcnxhmy8/T/tmpsvzuj4bd/tmp3gh1vid9'>>>s.copy('./')>>>s.cleanup()>>>tempstore.TempStore(name=None)Create a new TempStore.TempStore.create(name)Create a new tempfile. This returns the path to the tempfile, and it can
be accessed again later with eitherTempStore.paths[name]orTempStore.objs[name].name.TempStore.pathsAccess the paths of items in theTempStoreTempStore.objs`Access thetempfile.NamedTemporaryFileobjects of items in theTempStoreTempStore.cleanup()Remove all the temporary files in theTempStoreTempStore.copy(path=None, exist_ok=True)Copy all items in theTempStoreto a given path. IfTempStore.nameis not None, a new directory will be created inpathwith the name, and all files will be copied there.exist_okwill be passed toos.makedirsif TempStore.name is not
None
Package: tempting
temptingDo useful and somewhat weird things with templates.DescriptionDocumentation still to be done.DevelopmentAssuming you usepyenvandpyenv-virtualenvfor development, here's how to setup a 'tempting' development environment manually:pyenv install 3.7.3
pyenv virtualenv 3.7.3 tempting
git clone https://gitlab.com/frkl/tempting
cd <tempting_dir>
pyenv local tempting
pip install -e .[develop,testing,docs]
pre-commit install
python setup.py download    # to download default set of temptingsCopyright & licenseParity Public License 6.0.0Please check theLICENSEfile in this repository (it's a short license!), also check out thefreckleslicense pagefor more details.frkl product idsVersions:0.9:97de2bf5-0fbb-4884-9d26-488217e1477c1.x.x:97de2bf5-0fbb-4884-9d26-488217e1477cCopyright (c) 2019 frkl OÜ
Package: temptree
temptreeGenerates temporary files and directories from a tree.The providedTemporaryTreeclass allows to create complete files hierarchies under a
roottempfile.TemporaryDirectory.It is well suited for usage withindoctests:>>> from temptree import TemporaryTree

>>> with TemporaryTree(["foo.py", "bar.py"]) as root:
...     (root / "foo.py").is_file()
...     (root / "bar.py").is_file()
...
True
TrueA complete file hierarchy can be easily created, including text files content and files
mode:>>> with TemporaryTree({
...     "foo.py": ('''
...     import os
...     import sys
...
...     FOO = "foo"
...     ''', 0o700),
...     "bar": {
...         "bar.py": '''
...         import foo
...         import pathlib
...
...         def bar():
...             return foo.FOO
...         ''',
...         "baz.py": None,
...     }
... }) as root:
...     (root / "foo.py").exists()
...     (root / "bar").is_dir()
...     (root / "bar" / "bar.py").is_file()
...     (root / "bar" / "baz.py").is_file()
...
True
True
True
TrueInstallationAddtemptreeto your project dependencies:poetry add temptreeIf you just need it within yourdoctests, add it as a development dependency:poetry add --dev temptreeDocumentationThe complete documentationis available from Github Pages.DevelopmentThe development tasks are managed usingInvoke. Use it to list the available tasks:inv -lUse thepre-committask within your repositorypre-commithook:poetry run invoke pre-commitContributingThis project is hosted onGithub.If you're facing an issue usingtemptree, please look atthe existing tickets. Then you may open a new one.You may also make apush requestto help improve it.Licensetemptreeis licensed under theGNU GPL 3or later.
Package: tempus.edge.proto
# Tempus Edge - Protobuf Definitions
This directory holds the protobufproto3definitions for structuring standard Tempus Edge data.The protobufs are defined in src/proto to conform with guidelines from the [ScalaPB library and Maven plugin](https://scalapb.github.io/).Please feel free to submit pull requests if you’d like to extend these definitions or add new defs.If you add new message protocols or message types, make sure to update the [README in the edge apps directory](../applications/README.md).## Building
At this point, only Scala, Python, and Golang protobuf compiling is automated in this directory. Other languages will have to be compiled manually usingprotoc.To build all, simply runmaketo execute each build script.### Scala
Build using:`bash sh ./buildSCALA.sh `### Golang
Build using:`bash sh ./buildGOLANG.sh `To make the compiled go files available to your edge applications, ensure that you add the go build output directory to your$GOPATH.### PYTHON
Build using:`bash sh ./buildPYTHON.sh `Please feel free to submit Pull Requests to automate protobuf compiling into other languages!