Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Readme
|circleci_build| |pypi_version| |pypi_license|
try package
feature. To use it use
pundle.use("package_name==0.1")
. Version is optional.requirement.txt
, requirements_dev.txt
,
requirements_test.txt
. To activate env use like
PUNDLEENV=dev pundle ...
git+https://github.com/mitsuhiko/jinja2.git@85820fceb83569df62fa5e6b9b0f2f76b7c6a3cf#egg=jinja2-2.8.0
.
Push exactly like this formatted str to requirements.txtPundle get rid of virtualenv, because I think that virtualenv is pile of garbage and we must get rid of it.
frozen.txt
.I don't think that anything that is based on virtualenv can be "for humans".
Install:
.. code-block:: bash
> pip install pundle
or just place pundle.py
where python can find it
Create requirements.txt
or setup.py
(we will support .toml a bit
later). You can pin versions if you need it, or just place package name.
Pundle will pin it anyway as well as all of it dependencies.
Reveal all dependencies, pin versions, download and install everything:
.. code-block:: bash
> python -m pundle
Where actually it will install? Pundle use special folder
.pundledir/python-version/package-name-version
for every seperate
package and version.
To make it short create alias:
.. code-block:: bash
alias pundle='/usr/bin/env python -m pundle'
pundle install
After packages install, frozen/pinned, we want to use them, you know, import, right?
.. code-block:: python
import pundle; pundle.activate()
Or we can try to use pundle features:
.. code-block:: bash
# to execute entry point
pundle exec some_package_entry_point
# to run python script
pundle run my_script.py
# run module like python -m
pundle module some.my.module
To add VCS to requirements.txt
use git+url#egg=my_package-0.1.11
form.
To start console with Pundle activated use
.. code-block:: bash
> pundle console [ipython|ptpython|bpython]
You will have pundle_suite
object inserted to environment. You can use it
to call pundle_suite.use("trafaret_schema")
for example.
You can use pundle to expirement in python shell:
.. code-block:: python
>>> import pundle
>>> pundle.use('django==1.11.1') # will download and install django
>>> import django
Or you can use it in script:
.. code-block:: python
>>> import pundle
>>> pundle.use('django')
>>> pundle.use('arrow')
>>> pundle.use('trafaret')
>>>
>>> import django
>>> import arrow
>>> import trafaret
Pundle support environments. You can create seperate requirements file
with suffix like requirements_dev.txt
. Pundle will create
frozen_dev.txt
that will track common requirements + dev
requirements.
To use dev
environment use PUNDLEENV=dev
environment variable:
.. code-block:: bash
bash> PUNDLEENV=dev pundle run myscript.py
or common usage:
.. code-block:: bash
bash> PUNDLEENV=test pundle exec pytest
For setup.py
file pundle uses extras_require
as environments. For example if
you have extras_require = {'test': ['pylint', 'pyflakes']}
then you can use
pylint
with PUNDLEENV=test pundle exec pylint
.
Upgrade package:
.. code-block:: bash
pundle upgrade django
Upgrade all packages:
.. code-block:: bash
pundle upgrade
List of all entry points:
.. code-block:: bash
pundle entry_points
Do not hesitate to pundle help
;)
Q: How to use custom index url or extra index?
A: use PIP_EXTRA_INDEX_URL or any other pip
environment variables.
.. |circleci_build| image:: https://circleci.com/gh/Deepwalker/pundler.svg?style=svg :target: https://circleci.com/gh/Deepwalker/pundler .. |pypi_version| image:: https://img.shields.io/pypi/v/pundle.svg?style=flat-square :target: https://pypi.python.org/pypi/pundle .. |pypi_license| image:: https://img.shields.io/pypi/l/pundle.svg?style=flat-square :target: https://pypi.python.org/pypi/pundle
FAQs
Requirements management tool.
We found that pundle demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).