Saravanan666/pypi-org huggingface dataset:
Package: tox-recreate-hook
(experimental) Allows hooks to be defined which are called when recreating a tox testenv.DocsTestsPyPIActivityQAOtherInstallationtox-recreate-hookcan be installed from PyPI.To install withpip:$python-mpipinstalltox-recreate-hookExample configuration[testenv:docs]setenv=SHOW_TODOS = 1basepython=python3.8changedir={toxinidir}/doc-sourcedeps=-r{toxinidir}/requirements.txt-r{toxinidir}/doc-source/requirements.txtcommands=sphinx-build -M html . ./build {posargs}recreate_hook=builtin.rmdir("{toxinidir}/doc-source/build")
Package: tox-run-before
Tox Run Before PluginTox plugin to run shell commands before the test environments are created.InstallationAddtox-run-beforeto your Python path.UsageA newrun_beforedeclaration is available undertestenvsections.
Example:[testenv]
run_before =
    echo Building Yarn
    yarn
    yarn buildAuthorsPraekelt ConsultingHedley RoosChangelog0.1First release.
Package: tox-run-command
A tox plugin to run an arbitrary command in a tox managed virtualenv.Example:tox-epy27--run-command"server--port8080"In the example tox will will runserver--port8080inside of the py27
virualenv.Notes:Any env defined in your tox.ini will workThe env will be created if it doesn’t exist (just like tox normally
does)The commands from your tox.ini will not be run and instead the command
you wanted to run is runtox substitutionswill also work.
(e.g.tox-epy27--run-command"server--config={homedir}/server.conf")Why?Almost all of the projects I work on usetoxfor test automation. Many
of those projects, one such example isKeystone, carry custom Python
and/or shell scripts to create virtualenvs to run server processes for
manual testing. Other projects advise the developer to create a tox
virtualenv by runningtox-epy27--notestand then running the
server from within that virtualenv like.tox/py27/bin/server--port8080.Both of those options suck. Since I couldn’t find a tool that already existed
to do this, I created one using the newtox plugin API.
Package: tox-server
Tox Servertox-serveris a command line tool which runstoxin a loop
and calls it with commands from a remote CLI. It responds to commands
viaZeroMQ. It isn't super useful on its own (as it doesn't eliminate the startup time for tox, just runs it repeatedly) but it is
helpful if your tests have to be run inside another environment with some setup cost, such as a docker container.InstallationYou can usepipto installtox-server:$ pip install tox-serverRun the serverOn the remote host:$ tox-server serveThe server binds to127.0.0.1(i.e. it will only accept connections from localhost) because it is
not secured. If you are running it on an isolated network (like via docker), you can bind it to another host
withtox-server  -b 0.0.0.0 serve.Run a tox command remotelyOn your local host, you can run a tox command:$ tox-server run -e py37This will runtox -e py37on the remote host.A note on securityBasically, security is hard. This program doesn't provide any authentication mechanism, and I'm not tempted
to add one. Before you expose ports fromtox-serverto the world wide web, I'd advise using something like
SSH tunneling to provide security and authentication.
Package: tox-setuptools
IntroTox integration with setuptools test runner. This is a repackage of a sample code from theToxdocumentation site to allow cleanersetup.pyfiles.InstructionAdd this package intosetup_requiresparameter of yoursetup()configuration (ofsetup.pyscript):setup(...,
      setup_requires=['tox-setuptools'])This will automatically overwritetestcommand which will runtoxinstead.
Package: tox-setuptools-version
OverviewThis is a tox plugin that preinstalls a specific version of setuptools in each tox
environment.pipinstalltox-setuptools-versionThis works around the default behavior of tox/virtualenv that always installs
the latest version setuptools. It is an improvement over theVIRTUALENV_NO_DOWNLOAD=1option that does not install the latest version, but could result in usage of
an outdated version of setuptools.Note: This relies on anunstable tox plugin interface.
You may experience breakage with new tox versions. If you do, please feel
free toreport the issueon Github.This repository is based on a fork from the plugintox-pip-version, you should probably go to see his job too.UsageInstall the package and includesetuptools_versionin your tox.ini[testenv]
setuptools_version = setuptools_version<58Or, set theTOX_SETUPTOOLS_VERSIONenvironment variable,exportTOX_SETUPTOOLS_VERSION=57.2.4
toxThe plugin will install that version of setuptools into the tox-created virtualenv,
just after tox creates the virtualenv, but before dependencies are installed.Thesetuptools_versionwithin tox.ini, if present, is always used over the
environment variable.If neithersetuptools_versionorTOX_SETUPTOLLS_VERSIONis present, the plugin does
nothing.Version SetsVersion sets/ranges are supported, enabling installation of a version of pip
matching a set of specifiers. There are two basic formats: a plain version
number, or the package name with optionalPEP440-compatibleversion
specifiers.tox.inieffective pip commandsetuptools_version = 58.0pip install -U setuptools==19.0setuptools_version = setuptools==58.0pip install -U setuptools==58.0setuptools_version = setuptools>=58.0pip install -U setuptools>=58.0setuptools_version = setuptools!=58.0,>57pip install -U setuptools!=58.0,>57setuptools_version = setuptoolspip install -U setuptoolssetuptools_version = setuptools@git+https://github.com/pypa/setuptools@0168ac6setuptools@git+https://github.com/pypa/setuptools@0168ac6
Package: tox-tags
This is aToxplug-in that allows you to tag test environments and then easily
select a subset of test environments when running Tox.The plug-in and its rule system is heavily inspired bynose-attrib.Here’s an example:[tox]
envlist =
  py27-win,
  py27,
  py34,

[testenv:py27-win]
tags =
  winThen, you can easily run only thepy27-winenvironment:$ tox -t winYou can also run all but thepy27-winenvironment:$ tox -t '!win'
Package: tox-timemachine
InstallingTo install:pip install tox-timemachineUsingThis plugin provides a--time-travelcommand-line option that takes either
a date in YYYY-MM-DD format or a date and time in YYYY-MM-DDTHH-MM-SS format,
and will internally use a proxy PyPI server that does not include packages
released after this date (using the pypi-timemachine package). For instance:tox --time-travel=2018-02-03T12:33:02-e py37-testwill run tox as if it was being run on that date as far as PyPI is concerned.Bisection (experimental)This package also provides a command to automatically bisect between two dates
to pinpoint when a tox build started failing:tox-timemachine-bisect 2021-01-01 2021-08-10 -r -e py38-test -- -k test_coadd_solar_mapThe format is:tox-timemachine-bisect start_date end_date <tox arguments>This is still very experimental and does not yet explicitly say which package update
caused the issue (for now one needs to diff the log files) but this should be
made more user-friendly in future.CaveatsThis plugin will not work properly if you use the-i/--index-urloption
manually when calling tox. In addition, this will only work with pip-based
installs, and will not work with e.g.tox-conda.
Package: tox-travis
tox-travis is a plugin fortoxthat simplifies the setup
between tox and Travis.UsageConfigure the Python versions to test with in.travis.yml,
and installtox-traviswith pip:language:pythonpython:-"3.6"-"3.7"install:pip install tox-travisscript:toxtox will only run thepy36orpy37env
(or envs that have a factor that matches)
as appropriate for the version of Python
that is being run by each Travis job.
Package: toxtweet
Python files for Toxicovigilance on TwitterWhat is it?A collection of Python files, also listed on PyPI, as part of an ongoing effort to use Twitter for toxicology research.How do I use it?The easiest thing is to copy all of the files to someplace in your PYTHONPATH, like ~/bin.RUN PYTHON MAIN.PYThis module creates a twitteryQuery.py object for all drugs listed in the formulary. It can save the results in JSON or XLS.What other Python Plugins do I need?-Numpy/SciPy
-XLRD XLWT
-python-twitter (use pip install twitter not easy_install twitter)
-matplotlib
-simplejson
-networkxWhat do the files besides main.py do?—>twitterQuery.py: main.py creates an instance of twitterQuery for each drug in the “formulary” that you are … querying Twitter for.—>parser.py loads the JSON format results from querying twitter and formats them for NLP analysis by:Writing a reduplicated record of the tweets to an XLS file for human rating. (Change filename, which indicates the location of the JSON dump of the twitter query, as needed.)Making a stemmed corpus to use for semantic analysis, contextual analysis or as input to a classifier. (Change the savename as needed.)—>loadTweets.py is a helper function to calculate the Fleisch-Kincaid grade level of a tweet.—> medgraph.py draws a degree-rank plot with the social graph as an inset.
ATTRIBUTION: This is a modified version of a file from the matplotlib examples gallery.
Package: tox-uv
tox-uvtox-uvis a tox plugin which replaces virtualenv and pip with uv in your tox environments.
Note that you will get both the benefits (performance) or downsides (bugs) of uv.How to useInstalltox-uvinto the environment of your tox and it will replace virtualenv and pip for all runs:python-mpipinstalltox-uv
python-mtoxr-epy312# will use uvConfigurationuv-venv-runneris the ID for the tox environmentsrunner.uv-venv-pep-517is the ID for the PEP-517 packaging environment.uv-venv-cmd-builderis the ID for the external cmd builder.uv_seedThis flag, set on a tox environment level, controls if the created virtual environment injects pip/setuptools/wheel into
the created virtual environment or not. By default, is off. You will need to set this if you have a project that uses
the old legacy editable mode, or your project does not support thepyproject.tomlpowered isolated build model.
Package: tox-venv
What is tox-venv?tox-venv is a plugin that uses Python 3’s builtinvenvmodule for creating test environments, instead of creating
them with thevirtualenvpackage. For Python versions that do not includevenv(namely 3.2 and earlier), this
package does nothing and reverts to tox’s default implementation.Why use tox-venv?virtualenvis historically Python 2/3 compatible, however to achieve this, it ships some files that are pinned at
their Python 2.6 version, such as thesitemodule (see:pypa/virtualenv#355). This has a few effects:Builds using the-Werroroption fail, as the deprecations are raised before the test suite can run.Users cannot take advantage of newer features of thesitemodule in their test environments.Eventually, these deprecations will become exceptions in future versions of Python.By using the builtinvenvmodule, these issues can be avoided.Installation & UsageTo use tox-venv, install it alongside tox in your environment. Then, runtoxas normal - no configuration necessary.$ pip install tox tox-venv
$ toxIf you have already ran tox, it’s necessary to recreate the test envs. Either runtox--recreate, or delete the.toxdirectory.Compatibilitytox-venv is compatible with both Python 2 and 3, however it only creates test environments in Python 3.3 and later.
Python 3.3 environments are only partially compatible, as not all options (such as--copies/--symlinks) were
supported. Environments for Python 3.4 and later are fully compatible.Release processUpdate changelogUpdate package version in setup.pyCreate git tag for versionUpload release to PyPI$ pip install -U twine setuptools wheel
$ rm -rf dist/ build/
# python setup.py sdist bdist_wheel
$ twine upload dist/*
Package: tox-virtualenv-no-download
tox-virtualenv-no-downloadDisable virtualenv (>=14)'s downloading behaviour when running through tox.Wait, why?A few goals for test suites arerepeatabilityandspeed.  In modern
versions of virtualenv (>=14),virtualenvwill reach out to pypi to download
the latest version ofpip,setuptools, andwheeleven when it has a
perfectly good copy of the wheeled packages on disk.A few reasons why downloading is problematic:Reaching out to the network is slow.pypi goes down quite oftenYou may work in a situation where installation should not come from public
pypi.If you don't have a network connection,virtualenvwill outrightfail.Hurts repeatability as you may suddenly get a new version ofsetuptools/pipsetuptoolshas been unstable in the past, breaking their latest version
and compatibility.How it worksThe downloading behaviour ofvirtualenvcan be disabled either by callingvirtualenv --no-downloador by setting the environment variableVIRTUALENV_NO_DOWNLOAD.  This tox plugin sets that environment variable
during the virtualenv creation.Usage$ pip install tox-virtualenv-no-download
# just use tox as you usually would
$ tox ...
Package: tox-wikimedia
Automatically configure tox environments to use standard tools in a
hopefully unobtrusive way.For example:[tox]
envlist=py{34,35,36,37}-{flake8,pytest},py37-{mypy}
skip_missing_interpreters = True
requires = tox-wikimedia

[wikimedia]
mypy_package = mypackageThe following tools are supported for now:flake8flake8: “the modular source code checker: pep8, pyflakes and co”Command executed:flake8Dependencies installed:flake8mypymypy: “Optional static typing for Python”Command executed:mypy {mypy_package}Dependencies installed:mypy,requirements.txt(if exists),test-requirements.txt(if exists)pytestpytest: “pytest: simple powerful testing with Python”Command executed:pytestDependencies installed:pytest,requirements.txt(if exists),test-requirements.txt(if exists)
Package: toyapp
toyappAbstractExperiment with cookiecutter and docker to create a robust python tool that
can be run directly in a container.This toy project introduces the following concepts:Creating python packages from a cookiecutter templateBasic elements of simple python package, including setuptools, entry points, and testingAdding a simple command line interface thanks to clickUsing docker to containerize the applicationThe toy application takes two numbers and a mathemtical operation and returns the resultQuickstartInstall the package with pip.$mkdirdemo$cddemo$gitclonehttps://github.com/ian1roberts/toyapp.git$cdtoyapp$pipinstall.Try out the command line interface$toyapp12"+"Note that the operators must be quoted to avoid shell expansion.Check out the help$toyapp--helpUsage:toyapp[OPTIONS]NUM1NUM2[OPERATION]Performsimplearithmeticoperationsgiventwonumbersandanoperator.Ifoperatorisommited,thedefaultisaddition.Toprevent*beinginterpretedasawildcard,usequotesaroundtheoperator.--quiet,-q:Don't print the leading message, just return the result.
num1: float - The first number
num2: float - The second number
operation: str -The operation to perform on the two numbers

Evaluates the expression num1 operation num2 and prints the result.

Options:
    -q, --quiet  Don'tprinttheresult--helpShowthismessageandexit.FeaturesThe repository includes aMakefiileandDockerfileto build and run the application in a container.To build the container, runmake build.You can also pull the image from dockerhub withdocker pull ian1roberts/toyapp:latestCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.AppendixFree software: MIT licenseDocumentation:https://toyapp.readthedocs.io.History0.1.0 (2024-02-23)First release on PyPI.0.1.2 (2024-02-25)Configure with PyPI
Package: toydata
ToyDataLearning Data Structures with toy codeThere are some simple implementations(in Python3.7.6) of classic data structrues.I am trying to do this with an easy-to-read style.And, I add some extra functions beyond the ADTs, which are used mostly for printing and testing purposes.InstallToyData 1.0 in pypiJust run:pip install ToyData==1.0in your cmd.Note that: If you had change the default mirror of pip to another one,
such ashttps://pypi.tuna.tsinghua.edu.cn/simpleorhttp://pypi.douban.com/simple, you may have to install withpip install ToyData -i https://pypi.org/simpleBooksData Structures and Algorithms in Python, Michael T. Goodrichis themain referenceof the implementations.Note that there is a book namedData Structures and Algorithms in C++, Michael T. Goodrichwhich use C++ to implement these data structures.AndData Structures Using C, Reema Tharejais also a great book that implement these data structures using C.DocumentationToyDataAPIStack: ArrayStack, LinkedStackQueue: ArrayQueue, ArrayDequeDeque: LinkedDequePositional List: PositionalListPrority Queues: UnsortedPriorityQueue, SortedPriorityQueue, HeapPriorityQueueLinkedLists: Singlellist, DoublellistHash Tables: ChainHashMap, ProbeHashMap, SortedTableMapTrees: LinkedBinaryTreeSearch Trees: AVLTreeMap, SplayTreeMap, RedBlackTreeMapGraph: Adjacency Map, DFS/BFS, Floyd-WarshallCoursesThere some courses that use the book(Data Structures and Algorithms in Python) as textbook.(Tell me please, if you know other courses use it:-)数据结构与算法-Python (2019秋季)，武汉大学Great lecture notes.References:Jenny's lectures CS/IT NET&JRFJenny makes everything clear！
Package: toydb
ToyDBcreated by Austin PoorA small, toy database written in pure python.GitHubPyPi PackageRead the DocsAboutI started writingToyDBas atoyproject, in order to get a better sense of
how RDBMSs work.My goal isn't to write a high-performance database or even necessarily to finishToyDB-- it's to continue to get a better understanding of the inner workings
of a database.InstallationToyDBcan be installed using PyPi:$pipinstalltoydbStatusNOTE: Still in development.Write the frameworkLayout the DB directory structure and file formatWrite a SQL parserWrite a query functionTable Join functionalityFeedbackI'd love to hear your thoughts or suggestions onToyDB.Please feel free to reach out to me here or ontwitter!
Package: toyecc
toyecctoyecc is a playground for Elliptic Curve Cryptography in FP. It is
written in pure Python and aims to explain ECC in easy terms. It is neither
written to be performant, nor side-channel resistant nor in any way suited for
productive use at all. Please use it for its intended purpose and for it only.The rationale behind toyecc is to show a clear and mathematically clean
presentation of the underlying mathematical problems. Most code that is written
arund ECC -- especially code that revolves around Ed25519 and/or Curve25519 is
heavily optimized and in many cases hard to understand. toyecc tries to present
the problems with a high level of abstraction in order to serve as yet another
(different) reference to compare implementations against and in order to aid
understanding of heavily optimized code. All curve arithmetic is therefore
performed in affine space; performance in affine space is lowest, but having
values that directly can be checked against the curve equation makes
understanding everything extremely easy.Installationtoyecc is available on PyPi. You can install it by:$ pip3 install toyeccTutorialThere's a ECC tutorial that I've written which accompanies the pure code. It
can be found athttp://johannes-bauer.com/compsci/ecc/FeaturesECDSA demonstrationECIES demonstrationECDH demonstrationElgamal demonstrationDual_EC_DBRG backdoor demonstrationDemonstration how a private key can be recovered from two ECDSA signatures
which reused the same nonce (ECDSA nonce exploit)Support for short-formed Weierstrass curves, Montgomery curves and twisted
Edwards curvesConversion of domain parameters of twisted Edwards to Montgomery form and
back, conversion of points between Montgomery representation and its
birationally equivalent twisted Edwards counterpartEd25519 and Curve25519 support and support to convert keys between each
other (Curve25519 and Ed25519 are birationally equivalent curves)Many testcases to try out your own implementationExample of OpenBSD's signify application (generates and verifies Ed25519
signatures, but doesn't support key encryption)X-coordinate-only scalar multiplication on Short Weierstrass curvesClean, well-documented Python3 codeSage scripts that perform an invalid point attack using a vulnerable
X-only-ladder implementation of toyeccLicenseGNU GPL-3.
Package: toy-gradlogp
toy_gradlogpThis repo implements some toy examples of the following score matching algorithms in PyTorch:ssm-vr:sliced score matchingwith variance reductionssm:sliced score matchingdeen:deep energy estimator networksdsm:denoisnig score matchingRelated projects:toy_gradlogp_tf2: TensorFlow 2.0 Implementation.InstallationBasic requirements:Python >= 3.6TensorFlow >= 2.3.0PyTorch >= 1.8.0Install from PyPIpipinstalltoy_gradlogpOr install the latest version from this repopipinstallgit+https://github.com.Ending2015a/toy_gradlogp.git@masterExamplesThe examples are placed intoy_gradlogp/run/Train an energy modelRunssm-vron2spiralsdataset (don't forget to add--gputo enable gpu)python-mtoy_gradlogp.run.train_energy--gpu--lossssm-vr--data2spiralsTo see the full options, type--helpcommand:python -m toy_gradlogp.run.train_energy --helpusage: train_energy.py [-h] [--logdir LOGDIR]
                       [--data {8gaussians,2spirals,checkerboard,rings}]
                       [--loss {ssm-vr,ssm,deen,dsm}]
                       [--noise {radermacher,sphere,gaussian}] [--lr LR]
                       [--size SIZE] [--eval_size EVAL_SIZE]
                       [--batch_size BATCH_SIZE] [--n_epochs N_EPOCHS]
                       [--n_slices N_SLICES] [--n_steps N_STEPS] [--eps EPS]
                       [--gpu] [--log_freq LOG_FREQ] [--eval_freq EVAL_FREQ]
                       [--vis_freq VIS_FREQ]

optional arguments:
  -h, --help            show this help message and exit
  --logdir LOGDIR
  --data {8gaussians,2spirals,checkerboard,rings}
                        dataset
  --loss {ssm-vr,ssm,deen,dsm}
                        loss type
  --noise {radermacher,sphere,gaussian}
                        noise type
  --lr LR               learning rate
  --size SIZE           dataset size
  --eval_size EVAL_SIZE
                        dataset size for evaluation
  --batch_size BATCH_SIZE
                        training batch size
  --n_epochs N_EPOCHS   number of epochs to train
  --n_slices N_SLICES   number of slices for sliced score matching
  --n_steps N_STEPS     number of steps for langevin dynamics
  --eps EPS             noise scale for langevin dynamics
  --gpu                 enable gpu
  --log_freq LOG_FREQ   logging frequency (unit: epoch)
  --eval_freq EVAL_FREQ
                        evaluation frequency (unit: epoch)
  --vis_freq VIS_FREQ   visualization frequency (unit: epoch)ResultsTips: The larger density has a lower energy!8gaussiansAlgorithmResultsssm-vrssmdeendsm2spiralsAlgorithmResultsssm-vrssmdeendsmcheckerboardAlgorithmResultsssm-vrssmdeendsmringsAlgorithmResultsssm-vrssmdeendsm