Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Manages python applicatons or packages.
Create a basic template of python package and manage python apps or packages. The purpose of this tool is offer a similar experience with ruby's bundler. This package is based on pypkg-generator and pipenv.
OS X & Linux:
From PYPI
$ pip3 install pybundler
from the source
$ git clone https://github.com/dany2691/pybundler.git
$ cd pybundler
$ python3 setup.py install
Open a terminal and type:
$ pybundler --help
And it'll display:
Options:
--install-all Installs all packages from Pipfile
-i, --install TEXT Install a given package or the content of the Pipfile
-u, --uninstall TEXT uninstalls a given dependecy
-d, --dev If it is True, install dependency in dev section
--lock Creates or updates the Pipfile.lock
-s, --shell Spawns a shell within the virtualenv
-b, --build-wheel Creates a source archive and a wheel for your package
-t, --test-release Uploads the package to test.pypi.org
-r, --release Uploads the package to pypi.org andpushes it to the
git remote
-p, --package Creates a new python package from scratch
-v, --version Shows the current version of the package
--help Show this message and exit.
The purpose of this tool is offer a similar experience with ruby's bundler. So you can create a new package from scratch.
$ pybundler --package
Then, a list of question will prompted in order to customize the new package:
Please, enter the nanme of the package: : greate-project
Enter the path of the project (default: current dir) []:
Do you want to include a license file? [y/N]: y
Do you want to include a code of conduct file? [y/N]: y
Do you want to include a Pipfile file? [y/N]: y
Do you want to install pytest? [y/N]: y
So you can install dependencies like pipenv in a virtual enviroment:
$ pybundler --install numpy==1.16.2
You can install dev dependencies, as shown below:
$ pybundler --install pytest --dev
So, like pipenv, is possible to install all dependencies from Pipfile
$ pybundler --install-all
The following option generates or updates Pipfile.lock:
$ pybundler --lock
The following option spawns a shell within the virtualenv:
$ pybundler --shell
To see the current version installed in the system:
$ pybundler --version
In order to automate the publishing of the new package, we provide the next options for building and uploading the package to pypi and the remote git service.
This is a replacement for python setup.py sdist bdist_wheel
$ pybundler --build-wheel
The next option, uploads the package to test.pypi.org:
$ pybundler --test-release
And last but not least, this one, uploads the package to pypi.org and pushes it to the git remote:
$ pybundler --release
This project uses pipenv for dependecy resolution. It's a kind of mix between pip and virtualenv. Follow the next instructions to setup the development enviroment.
$ git clone https://github.com/dany2691/pybundler.git
$ cd pybundler
$ pipenv shell
$ pipenv install -e .
To run the test-suite, inside the pybundler directory:
$ pytest -vv test/
pybundler
instead of py-bundler
text/markdown
instead of text/markadown
Daniel Omar Vergara Pérez – @dan1_net – daniel.omar.vergara@gmail.com
git checkout -b feature/fooBar
)git commit -am 'Add some fooBar'
)git push origin feature/fooBar
)FAQs
Create or manage a python app or package
We found that pybundler 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.