No project description provided
Project description
ckanext-selfinfo
This extension is built to represent a basic information about the running CKAN Application accessible only to admins.
On CKAN admin page /ckan-admin/selfinfo
, admin can see such information as:
- System Information
- System name
- Python version
- RAM Usage in %
- RAM Usage in GB
- CKAN Information
- Site Title
- CKAN Version
- Default Language
- Extensions that enabled on the portal
- GIT Information (Optional, see Config Settings section)
- Project
- Head
- Based on
- Commit
- Remotes
- Python Information
- Provides information about CKAN Core, CKAN Extensions, Python installed packages. It shows their current version and latest version.
Requirements
Having CKAN Core version 2.10+
Installing the packages mentioned in requirements.txt
file.
Installation
To install ckanext-selfinfo:
-
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
-
Clone the source and install it on the virtualenv
git clone https://github.com//ckanext-selfinfo.git cd ckanext-selfinfo pip install -e .
-
Add
selfinfo
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini
). -
Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
Developer installation
To install ckanext-selfinfo for development, activate your CKAN virtualenv and do:
git clone https://github.com//ckanext-selfinfo.git
cd ckanext-selfinfo
python setup.py develop
Config Settings
ckan.selfinfo.ckan_repos_path
- Path to the src folder where CKAN and CKAN Extensions stored at the environment. While provided, additional GIT Infromation will be granted.
ckan.selfinfo.ckan_repos
- List of CKAN Extension folders separated by space (ckanext-scheming ckanext-spatial ckanext-xloader). By default, if ckan.selfinfo.ckan_repos_path
is provided ,it will look into the directory and gather the extensions from there. Make sure to read the Note under this options before adding it, as it may cause 500 error, if not configured right.
NOTE!
For Linux, keep in mind that the added folder in ckan.selfinfo.ckan_repos_path
should have the same owner as the one that runs the application (e.g. if the application runs from ckan
User in the system, then ckanext-scheming folder owner should be ckan
), otherwise there will be an error related to ownership of the repository.
Tests
To run the tests, do:
pytest --ckan-ini=test.ini
Releasing a new version of ckanext-selfinfo
If ckanext-selfinfo should be available on PyPI you can follow these steps to publish a new version:
-
Update the version number in the
setup.py
file. See PEP 440 for how to choose version numbers. -
Make sure you have the latest version of necessary packages:
pip install --upgrade setuptools wheel twine
-
Create a source and binary distributions of the new version:
python setup.py sdist bdist_wheel && twine check dist/*
Fix any errors you get.
-
Upload the source distribution to PyPI:
twine upload dist/*
-
Commit any outstanding changes:
git commit -a git push
-
Tag the new release of the project on GitHub with the version number from the
setup.py
file. For example if the version number insetup.py
is 0.0.1 then do:git tag 0.0.1 git push --tags
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ckanext_selfinfo-1.0.1.tar.gz
.
File metadata
- Download URL: ckanext_selfinfo-1.0.1.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41c5229f56566cb072b0db1efbaef9f77b7e7cc5ca6c52b686b647b901da3bbe |
|
MD5 | c4513e9ba8cd1938f4f58d652535594a |
|
BLAKE2b-256 | a396079b603d13425c8706a8a590efcd9b1b6578f981bb49f0d97bc62508c010 |
File details
Details for the file ckanext_selfinfo-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: ckanext_selfinfo-1.0.1-py3-none-any.whl
- Upload date:
- Size: 29.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2d13ecfe801dd6e923876a7257c0b7511ca6d0efacc3ccde6bfaf3700572303 |
|
MD5 | c0a2141ebff3e28a65316f7e27185305 |
|
BLAKE2b-256 | 3502bb8808f94949d300e17a443e444876665cac7fb65836e7b65c7e8eb232fc |