Saravanan666/pypi-org huggingface dataset:
Package: ckanext-sketchfab
ckanext-sketchfabA CKAN extension for embedding Sketchfab models as views.OverviewASketchfabview can be added toanyresource, regardless of whether the original data are related to the model. The view can use either the resource's URL (if the resource links directly to a sketchfab model) or one can be specified when creating the view.You can see some of the Natural History Museum's 3D scanson Sketchfab, and several examples of the plugin in use inthis dataseton the Museum's Data Portal.InstallationPath variables used below:$INSTALL_FOLDER(i.e. where CKAN is installed), e.g./usr/lib/ckan/default$CONFIG_FILE, e.g./etc/ckan/default/development.iniInstalling from PyPIpipinstallckanext-sketchfabInstalling from sourceClone the repository into thesrcfolder:cd$INSTALL_FOLDER/src
gitclonehttps://github.com/NaturalHistoryMuseum/ckanext-sketchfab.gitActivate the virtual env:.$INSTALL_FOLDER/bin/activateInstall via pip:pipinstall$INSTALL_FOLDER/src/ckanext-sketchfabInstalling in editable modeInstalling from apyproject.tomlin editable mode (i.e.pip install -e) requiressetuptools>=64; however, CKAN 2.9 requiressetuptools==44.1.0. Seeour CKAN forkfor a version of v2.9 that uses an updated setuptools if this functionality is something you need.Post-install setupAdd 'sketchfab' to the list of plugins in your$CONFIG_FILE:ckan.plugins=... sketchfabConfigurationThere are currently no configuration options for this extension.UsageAfter installing, the "Sketchfab" view type will become available for resource maintainers. Add the new view and provide the URL to a Sketchfab model where prompted.TestingThere is a Docker compose configuration available in this repository to make it easier to run tests. The ckan image uses the Dockerfile in thedocker/folder.To run the tests against ckan 2.9.x on Python3:Build the required images:docker-composebuildThen run the tests.
The root of the repository is mounted into the ckan container as a volume by the Docker compose
configuration, so you should only need to rebuild the ckan image if you change the extension's
dependencies.docker-composerunckan
Package: ckanext-statistics
ckanext-statisticsA CKAN extension for accessing instance statistics.OverviewShows statistics for datasets and downloads on the CKAN instance.NB: This extension currently only works with the Natural History Museum's theme extensionckanext-nhm.InstallationPath variables used below:$INSTALL_FOLDER(i.e. where CKAN is installed), e.g./usr/lib/ckan/default$CONFIG_FILE, e.g./etc/ckan/default/development.iniInstalling from PyPIpipinstallckanext-statisticsInstalling from sourceClone the repository into thesrcfolder:cd$INSTALL_FOLDER/src
gitclonehttps://github.com/NaturalHistoryMuseum/ckanext-statistics.gitActivate the virtual env:.$INSTALL_FOLDER/bin/activateInstall via pip:pipinstall$INSTALL_FOLDER/src/ckanext-statisticsInstalling in editable modeInstalling from apyproject.tomlin editable mode (i.e.pip install -e) requiressetuptools>=64; however, CKAN 2.9 requiressetuptools==44.1.0. Seeour CKAN forkfor a version of v2.9 that uses an updated setuptools if this functionality is something you need.Post-install setupAdd 'statistics' to the list of plugins in your$CONFIG_FILE:ckan.plugins=... statisticsConfigurationThese are no configuration options for this extension.UsageActionsdownload_statisticsStatistics for downloads of datasets from the instance.fromckan.pluginsimporttoolkit# all of these filters are optionaldata_dict={'resource_id':RESOURCE_ID,'year':YEAR,'month':MONTH}toolkit.get_action('download_statistics')(context,data_dict)dataset_statisticsStatistics for dataset records.fromckan.pluginsimporttoolkit# these filters are optionaldata_dict={'resource_id':RESOURCE_ID,}toolkit.get_action('dataset_statistics')(context,data_dict)Commandsstatisticsinitdb: initialise the database modelckan-c$CONFIG_FILEstatisticsinitdbgbif: retrieve download statistics fromGBIF.ckan-c$CONFIG_FILEstatisticsgbifTestingThere is a Docker compose configuration available in this repository to make it easier to run tests. The ckan image uses the Dockerfile in thedocker/folder.To run the tests against ckan 2.9.x on Python3:Build the required images:docker-composebuildThen run the tests.
The root of the repository is mounted into the ckan container as a volume by the Docker compose
configuration, so you should only need to rebuild the ckan image if you change the extension's
dependencies.docker-composerunckan
Package: ckanext-status
ckanext-statusA CKAN extension that adds a 'status' bar to the top of the page.OverviewThis extension allows maintainers to add a simple static message to the top of every page by setting
a single configuration option.
For example, it can be used to notify users of planned downtime, unexpected issues with the site, or
new features.InstallationPath variables used below:$INSTALL_FOLDER(i.e. where CKAN is installed), e.g./usr/lib/ckan/default$CONFIG_FILE, e.g./etc/ckan/default/development.iniInstalling from PyPIpipinstallckanext-statusInstalling from sourceClone the repository into thesrcfolder:cd$INSTALL_FOLDER/src
gitclonehttps://github.com/NaturalHistoryMuseum/ckanext-status.gitActivate the virtual env:.$INSTALL_FOLDER/bin/activateInstall via pip:pipinstall$INSTALL_FOLDER/src/ckanext-statusInstalling in editable modeInstalling from apyproject.tomlin editable mode (i.e.pip install -e) requiressetuptools>=64; however, CKAN 2.9 requiressetuptools==44.1.0. Seeour CKAN forkfor a version of v2.9 that uses an updated setuptools if this functionality is something you need.Post-install setupAdd 'status' to the list of plugins in your$CONFIG_FILE:ckan.plugins=... statusInstalllesscglobally:npminstall-g"less@~4.1"ConfigurationUsageTo turn the status bar on, login as a sysadmin and head to the system configuration page.
There, just set theckanext.status.messageconfig option.
To deactivate it, just remove the contents of the text box.TemplatesThis extension adds content to the{% block skip %}section ofpage.html. To add it elsewhere:{%ifh.status_get_message()%}{%resource'ckanext-status/main'%}<pid="status-bar">{{h.status_get_message()}}</p>{%endif%}TestingThere is a Docker compose configuration available in this repository to make it easier to run tests. The ckan image uses the Dockerfile in thedocker/folder.To run the tests against ckan 2.9.x on Python3:Build the required images:docker-composebuildThen run the tests.
The root of the repository is mounted into the ckan container as a volume by the Docker compose
configuration, so you should only need to rebuild the ckan image if you change the extension's
dependencies.docker-composerunckan
Package: ckanext-tagmanager
ckanext-tagmanager=============Tagmanager offers a graphical interface for removing and merging tags. This is usefull for big open data portals with many contributors, where tags are not always kept consistent.We offer three modes of tags merging suggestions:- Strong: show tags that differ only by capitals special characters;- Medium: show tags that have a Levenshtein edit distance smaller than one;- Synonym: show tags that are synomyns (only for English)This extensions is intended to fill the tag managament gap of CKAN. CKAN core offers only a listing of tags, and edition through the specific datasets.In the future, we plan to offer the creation of relationships between tags, and connection to a central semantic tag server.Requirements------------Before installing tagmanager, make sure you have:* CKAN 2.5+* Levenshtein python library: pip install python-Levenshtein* Unidecode python library: pip install unidecode* NLTK library: pip install nltk* NLTK data: python -m nltk.downloader allInstallation------------To install ckanext-tagmanager:1. Activate your CKAN virtual environment, for example::. /usr/lib/ckan/default/bin/activate2. Install the ckanext-tagmanager Python package into your virtual environment::pip install ckanext-tagmanager3. Add ``tagmanager`` to the ``ckan.plugins`` setting in your CKANconfig file (by default the config file is located at``/etc/ckan/default/production.ini``).4. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu::sudo service apache2 reloadDevelopment Installation------------------------To install ckanext-tagmanager for development, activate your CKAN virtualenv anddo::git clone https://github.com/alantygel/ckanext-tagmanager.gitcd ckanext-tagmanagerpython setup.py developpip install -r dev-requirements.txtUse---------------------Navigate to yoursite/tagmanager
Package: ckanext-thumbnailer
ckanext-thumbnailerRequirementsCompatibility with core CKAN versions:CKAN versionCompatible?2.9yesmasteryesInstallationInstall extension. It may fail because of missing system packages. Checkpreview-generatordocumentation for details.pip install ckanext-thumbnailerAddfilesandthumbnailerto the list of enabled pluginsckan.plugins = ... thumbnailer filesConfig settings# If greater than 0, make an attempt to download linked resource as long as it's side is under this limit
# (optional, default: 0).
ckanext.thumbnailer.max_remote_size = 0

# List of formats that will get thumbnails when resource is created/updated
# (optional, default: None).
ckanext.thumbnailer.auto_formats = pdf png
Package: ckanext-tif-imageview
ckanext-tif-imageviewThe CKAN extension for TIFF images preview.The plugintif_imageviewconverts the target tif image to the jpeg format for showing the preview of the image. It does not change or replace the original tif image.RequirementsCompatibility with core CKAN versions:CKAN versionCompatible?2.9YesearlierNoT TestedInstallationTo install ckanext-tif-imageview:Activate your CKAN virtual environment and install the extension:> . /usr/lib/ckan/default/bin/activate
 > pip install ckanext-tif-imageviewOR,  Clone the source and install it on the virtualenvgit clone https://github.com/TIBHannover/ckanext-tif-imageview.git
 cd ckanext-tif-imageview
 pip install -e .
 pip install -r requirements.txtAddtif_imageviewto theckan.pluginssetting 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 Nginx on Ubuntu:sudo service nginx reloadConfig settingsModify ckan.ini (/etc/ckan/default/)# add the plugin to:
ckan.views.default_views
Package: ckanext-unfold
ckanext-unfoldPreview for different archive formatsTODOimplement remote support for tar, 7zadd password support for all adaptersrefactor to show an error to user if something went wrong (no pass, request exp, corrupted or empty archive)What are the dependencies?Working with different archive formats requires different tools:RAR, CBRIt depends onunrarcommand-line utility to do the actual decompression. Note that by default it expect it to be inPATH.
If unrar launching fails, you need to fix this.Alternatively,rarfilecan also use eitherunarfromTheUnarchiverorbsdtarfromlibarchiveas
decompression backend. From those unar is preferred as bsdtar has very limited support for RAR archives.It depends oncryptographyorPyCryptodomemodules to process archives with password-protected headers.7ZWe are usingpy7zrlibrary.The py7zr depends on several external libraries. You should install these libraries with py7zr.
There arePyCryptodome,PyZstd,PyPPMd,bcj-cffi,texttable, andmultivolumefile.
These packages are automatically installed when installing with pip command.For extra information, please visit theofficial documentation,
especially the dependencies section.ZIP, ZIPX, JARWe are using built-in libraryzipfile. Please consider referring to the official documentation for more information.TAR, TAR.XZ, TAR.GZ, TAR.BZ2We are using built-in librarytarfile. Please consider referring to the official documentation for more information.RPMWe are usingrpmfilelibrary.If you want to use rpmfile with zstd compressed rpms, you'll need to install thezstandardmodule.Config settingsTODOLicenseAGPL
Package: ckanext-userautoadd
CKAN plugin to add new users to an existing organization automatically.This plugin implements theuser_createaction to add users to an existing
organization with a given role (both specified in the configuration - See Config
Settings below).RequirementsTested with CKAN v2.5.2InstallationTo install ckanext-userautoadd:Activate your CKAN virtual environment, for example:. /usr/lib/ckan/default/bin/activateInstall the ckanext-userautoadd Python package into your virtual environment:pip install ckanext-userautoaddAdduserautoaddto theckan.pluginssetting in your CKAN
config file (by default the config file is located at/etc/ckan/default/production.ini).Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu:sudo service apache2 reloadConfig Settings# The organization to which new users are added
ckan.userautoadd.organization_name = my_organization

# The role the new users will have
ckan.userautoadd.organization_role = editorDevelopment InstallationTo install ckanext-userautoadd for development, activate your CKAN virtualenv and
do:git clone https://github.com/aptivate/ckanext-userautoadd.git
cd ckanext-userautoadd
python setup.py develop
pip install -r dev-requirements.txtRunning the TestsTo run the tests, do:nosetests --nologcapture --with-pylons=test.iniTo run the tests and produce a coverage report, first make sure you have
coverage installed in your virtualenv (pip install coverage) then run:nosetests --nologcapture --with-pylons=test.ini --with-coverage --cover-package=ckanext.userautoadd --cover-inclusive --cover-erase --cover-testsRegistering ckanext-userautoadd on PyPIckanext-userautoadd should be availabe on PyPI ashttps://pypi.python.org/pypi/ckanext-userautoadd. If that link doesn’t work, then
you can register the project on PyPI for the first time by following these
steps:Create a source distribution of the project:python setup.py sdistRegister the project:python setup.py registerUpload the source distribution to PyPI:python setup.py sdist uploadTag the first release of the project on GitHub with the version number from
thesetup.pyfile. For example if the version number insetup.pyis
0.0.1 then do:git tag 0.0.1
git push --tagsReleasing a New Version of ckanext-userautoaddckanext-userautoadd is availabe on PyPI ashttps://pypi.python.org/pypi/ckanext-userautoadd.
To publish a new version to PyPI follow these steps:Update the version number in thesetup.pyfile.
SeePEP 440for how to choose version numbers.Create a source distribution of the new version:python setup.py sdistUpload the source distribution to PyPI:python setup.py sdist uploadTag the new release of the project on GitHub with the version number from
thesetup.pyfile. For example if the version number insetup.pyis
0.0.2 then do:git tag 0.0.2
git push --tags
Package: ckanext-userdatasets
ckanext-userdatasetsA CKAN extension that allows organisation members to create datasets, and edit or delete the datasets they have created.OverviewThis extension changes the permissions of users with the 'Member' role in an organisation, allowing them to create
datasets, and to edit or delete the datasets they have created. Unlike users with the 'Editor' role, they cannot
edit or delete datasets created by other users.Notes:This applies to the existing 'Member' role rather than creating a new one as it is currently not possible to add
new roles from an extension;The plugin works with custom dataset types, however it will not work with other plugins which override
package/resource update/create/delete authorization functions, and package_create/update actions.Warning: This plugin modifies CKAN's permission system. The current implementation cannot be considered fully
safe and should only be used AT YOUR OWN RISK in a trusted environment. Ensure you run the tests with your plugins
enabled.InstallationPath variables used below:$INSTALL_FOLDER(i.e. where CKAN is installed), e.g./usr/lib/ckan/default$CONFIG_FILE, e.g./etc/ckan/default/development.iniInstalling from PyPIpipinstallckanext-userdatasetsInstalling from sourceClone the repository into thesrcfolder:cd$INSTALL_FOLDER/src
gitclonehttps://github.com/NaturalHistoryMuseum/ckanext-userdatasets.gitActivate the virtual env:.$INSTALL_FOLDER/bin/activateInstall via pip:pipinstall$INSTALL_FOLDER/src/ckanext-userdatasetsInstalling in editable modeInstalling from apyproject.tomlin editable mode (i.e.pip install -e) requiressetuptools>=64; however, CKAN 2.9 requiressetuptools==44.1.0. Seeour CKAN forkfor a version of v2.9 that uses an updated setuptools if this functionality is something you need.Post-install setupAdd 'userdatasets' to the list of plugins in your$CONFIG_FILE:ckan.plugins=... userdatasetsConfigurationThere are no configuration options for this extension.UsageActionsNo new actions are defined in this extension; three are overridden to modify validators and permissions.package_createpackage_updateorganization_list_for_userTestingThere is a Docker compose configuration available in this repository to make it easier to run tests. The ckan image uses the Dockerfile in thedocker/folder.To run the tests against ckan 2.9.x on Python3:Build the required images:docker-composebuildThen run the tests.
The root of the repository is mounted into the ckan container as a volume by the Docker compose
configuration, so you should only need to rebuild the ckan image if you change the extension's
dependencies.docker-composerunckan
Package: ckanext-usmetadata
ckanext-usmetadataThis CKAN Extension expands CKAN to offer a number of custom fields related to theDCAT-US SchemaInstallationAddckanext-usmetadatato your requirements.txt, and then pip installThen in your CKAN .ini file, addusmetadatato your ckan.plugins line:ckan.plugins = (other plugins here...) usmetadataRequirementsThis extension is compatible with these versions of CKAN.CKAN versionCompatibility<=2.9no2.10yesDevelopmentYou may also install by cloning the git repo, then running ''python setup.py develop'' from the root of your source
directory, which will install an egg link so that you can modify the code and see resultslocalhost:5000.Clean up any containers and volumes.$ make downOpen a shell to run commands in the container.$ docker-compose exec ckan bashIf you're unfamiliar with docker-compose, see ourcheatsheetand theofficial docs.For additional make targets, see the help.$ make helpTestingThey follow the guidelines fortesting CKAN
extensions.To run the extension tests, start the containers withmake up, then:$ make testLint the code.$ make lintMatrix buildsIn order to support multiple versions of CKAN, or even upgrade to new versions
of CKAN, we support development and testing through theCKAN_VERSIONenvironment variable.$ make CKAN_VERSION=2.9 testCredit / CopyingCredit to the original owner of the repo.  Everything here is built on top of the original foundation.
Package: ckanext-video
ckanext-videoA CKAN extension for embedding Youtube or Vimeo videos as views.OverviewAdds an 'Embedded Video' view type, which displays a video from YouTube or Vimeo (either using the resource URL or a different URL).InstallationPath variables used below:$INSTALL_FOLDER(i.e. where CKAN is installed), e.g./usr/lib/ckan/default$CONFIG_FILE, e.g./etc/ckan/default/development.iniInstalling from PyPIpipinstallckanext-videoInstalling from sourceClone the repository into thesrcfolder:cd$INSTALL_FOLDER/src
gitclonehttps://github.com/NaturalHistoryMuseum/ckanext-video.gitActivate the virtual env:.$INSTALL_FOLDER/bin/activateInstall via pip:pipinstall$INSTALL_FOLDER/src/ckanext-videoInstalling in editable modeInstalling from apyproject.tomlin editable mode (i.e.pip install -e) requiressetuptools>=64; however, CKAN 2.9 requiressetuptools==44.1.0. Seeour CKAN forkfor a version of v2.9 that uses an updated setuptools if this functionality is something you need.Post-install setupAdd 'video' to the list of plugins in your$CONFIG_FILE:ckan.plugins=... videoConfigurationThere are currently no options that can be specified in your .ini config file.UsageAfter enabling this extension in the list of plugins, the Embedded Video view should become available for resources. The resource does not have to link to the video; the URL can be overridden when creating the view.TestingThere is a Docker compose configuration available in this repository to make it easier to run tests. The ckan image uses the Dockerfile in thedocker/folder.To run the tests against ckan 2.9.x on Python3:Build the required images:docker-composebuildThen run the tests.
The root of the repository is mounted into the ckan container as a volume by the Docker compose
configuration, so you should only need to rebuild the ckan image if you change the extension's
dependencies.docker-composerunckan
Package: ckanext-vip-portal
ckanext-vip-portalGeneric access restrictions for anonymous user.Configure the set or endpoints/URLs that are available for the anonymous user,
and redirect to the login page if he attempts to visit non-whitelisted page.RequirementsCompatibility with core CKAN versions:CKAN versionCompatible?2.9yes2.10yes2.11(master)yesInstallationTo installckanext-vip-portal:Install it using pippipinstallckanext-vip-portalAddvip_portalto theckan.pluginssetting in your CKAN
config file.Config settings# Configure endpoint that handles unauthorized page access# (optional, default: user.login)ckanext.vip_portal.login_endpoint=auth_ext.login# Allow anonymous access to all the pages. It basically disables current# extensions# (optional, default: false)ckanext.vip_portal.free_anonymous_access=true# Allow any authenticated user to visit pages normally# (optional, default: true)ckanext.vip_portal.free_authenticated_access=false# Unless endpoint is blocked by one of IVipAccess implementations, it can be# accessed by anyone. Use it in combination with IVipPortal interface if you# want to leave the portal generally open and block only certain endpoints# (optional, default: false)ckanext.vip_portal.free_access_by_default=true# Allow anonymous access to login pages# (optional, default: true)ckanext.vip_portal.allow_login=false# Allow anonymous access to password reset page# (optional, default: true)ckanext.vip_portal.allow_password_reset=false# Allow anonymous access to registration pages# (optional, default: true)ckanext.vip_portal.allow_registration=false# Allow anonymous access to API endpoints# (optional, default: true)ckanext.vip_portal.allow_api=false# Additional endpoints that are accessible by anonymous user# (optional, default: )ckanext.vip_portal.extra_allowed_endpoints=home.index home.about dataset.search# Additional paths(URLs) that are accessible by anonymous user# (optional, default: )ckanext.vip_portal.extra_allowed_paths=/ /about /dataset# Allow anonymous user to access any path that starts with the following# prefixes# (optional, default: )ckanext.vip_portal.extra_allowed_prefixes=/dataset /organization /group /static# Allow anonymous user to access any path that ends with the following# suffixes# (optional, default: )ckanext.vip_portal.extra_allowed_suffixes=.svg .html .css# Allows to customize the route that the user will get redirected to# after a successful login. Empty value allow user to be redirected to the page# requested before displaying login page# (optional, default: )ckan.auth.route_after_login=dataset.searchDeveloper installationTo installckanext-vip-portalfor development, activate your CKAN virtualenv and
do:git clone https://github.com/DataShades/ckanext-vip-portal.git
cd ckanext-vip-portal
pip install -e '.[dev]'LicenseAGPL