Difio registration agent for stand-alone Python virtualenv applications.
It compiles a list of locally installed Python packages and sends it to http://www.dif.io.
Installing inside your virtualenv
Create an account at http://www.dif.io
Activate your virtualenv
if you’re using virtualenvwrapper then simply:
workon myapp
if you’re not using virtualenvwrapper then something like this will work:
cd ~/.virtualenvs/myapp/ source bin/activate
Install this package
pip install difio-virtualenv-python
Create a script which will contain your configuration values and register the application with Difio when executed. It should look something like this:
#!/bin/bash export DIFIO_USER_ID=YourUserID export DIFIO_UUID=APP-UUID $VIRTUAL_ENV/bin/difio-virtualenv-python
- NOTE:
You can find your Difio userID at https://difio-otb.rhcloud.com/profiles/mine/.
Replace APP-UUID with a unique value, for example generated by the uuidgen program!
Make this script executable
chmod a+x $VIRTUAL_ENV/path/to/registration_script
If you wish, you can configure $VIRTUAL_ENV/bin/postactivate hook to call the registration script every time when the virtualenv is activated
echo "\$VIRTUAL_ENV/path/to/registration_script" >> $VIRTUAL_ENV/bin/postactivate chmod a+x $VIRTUAL_ENV/bin/postactivate
Execute the registration script to register the application.
$VIRTUAL_ENV/path/to/registration_script
NOTE: You will have to do this every time when you install/remove or upgrade packages in the virtualenv. Optionally you can configure a cron job to do this automatically.
If everything goes well you should see something like:
Difio: Success, registered/updated application with uuid 7a99f652-977a-477a-b35c-1d8e60478425
That’s it, you can now check your application statistics at http://www.dif.io
Notes
Difio will use the basepath of your virtualenv as the application name. To override use environment variable DIFIO_APP_NAME;
Package virtualenv will also be added to the list of installed packages if you have created your virtualenv with --system-site-packages option. Otherwise use environment variable DIFIO_VIRTUALENV_VERSION to override;
Application type is “python” followed by the interpreter version;
Application URL is the system hostname prepended with http://. To override use environment variable DIFIO_APP_URL including the protocol string.
Metadata
Release files for difio-virtualenv-python 3.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| difio-virtualenv-python-3.1.1.tar.gz | 3.9 kB | Without provenance | Details for difio-virtualenv-python-3.1.1.tar.gz |
Release files / difio-virtualenv-python-3.1.1.tar.gz
| Download URL | difio-virtualenv-python-3.1.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f92750906d2fa73df14674e464bf1f9d595f1a2796719fe48979dd1d36251cbe
|
|
BLAKE2b-256 checksum How to use checksums |
034434bf83b5b9e1788d19f7313d11152433a3e551f1bda3fc475c76bdf68e8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for difio-virtualenv-python 3.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.