Difio registration agent for OpenShift / Python applications.
It compiles a list of locally installed Python packages and sends it to <http://www.dif.io>.
Installing on your OpenShift application
Create an account at <http://www.dif.io>
Create a Python application on OpenShift
rhc-create-app -a myapp -t python-2.6
Add a dependency in your setup.py file
from setuptools import setup
setup(
name='MyApplication',
version='1.0',
install_requires=['difio-openshift-python'],
)
Set your userID in the ./data/DIFIO_SETTINGS file
cd ./myapp/ echo "export DIFIO_USER_ID=YourUserID" > ./data/DIFIO_SETTINGS
OpenShift by default will treat your application as a package. If the name given in setup.py is different from the name passed to rhc-create-app command then set the application name in the ./data/DIFIO_SETTINGS file
echo "export DIFIO_APP_NAME='MyApplication'" >> ./data/DIFIO_SETTINGS
This registration script will ignore package names that match the value of OPENSHIFT_GEAR_NAME and DIFIO_APP_NAME environment variables.
Enable the registration script in .openshift/action_hooks/post_deploy
# Activate VirtualEnv in order to use the correct libraries source $OPENSHIFT_HOMEDIR/python-2.6/virtenv/bin/activate # Set user defined settings source $OPENSHIFT_REPO_DIR/data/DIFIO_SETTINGS # Register/update the application python $OPENSHIFT_HOMEDIR/python-2.6/virtenv/bin/difio-openshift-python
Then push your application to OpenShift
git push
That’s it, you can now check your application statistics at <http://www.dif.io>
Metadata
Release files for difio-openshift-python 2.1.2
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-openshift-python-2.1.2.tar.gz | 2.9 kB | Without provenance | Details for difio-openshift-python-2.1.2.tar.gz |
Release files / difio-openshift-python-2.1.2.tar.gz
| Download URL | difio-openshift-python-2.1.2.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a03ee85fb49eddce765df32034d94d2015517d340062afa7a7235326d03cd84b
|
|
BLAKE2b-256 checksum How to use checksums |
e13e0091802dbfec85b59ba010b8f76b77305dd509cb610daa3a051b6d0ee461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for difio-openshift-python 2.1.2
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.