Saravanan666/pypi-org huggingface dataset:
Package: ckanext-multiuploader
ckanext-multiuploaderThis CKAN extension helps users to upload multiple resources at once with drag&drop.RequirementsCompatibility with core CKAN versions:CKAN versionCompatible?2.9YesearlierNoInstallationTo install ckanext-multiuploader:Activate your CKAN virtual environment and install:> . /usr/lib/ckan/default/bin/activate
  > pip install ckanext-multiuploaderOR, Clone the source and install it on the virtualenv (Suggested location: /usr/lib/ckan/default/src)
:git clone https://github.com/TIBHannover/ckanext-multiuploader.git
    cd ckanext-multiuploader
    pip install -e .
    pip install -r requirements.txtAddmultiuploaderto 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 Apache on Ubuntu:sudo service apache2 reloadUsage and ConfigNote: you have to set the max resource size in ckan configuration (/etc/ckan/default/ckan.ini)ckan.max_resource_sizeTestsTo run the tests, do:pytest --ckan-ini=test.ini  --disable-pytest-warnings  ckanext/multiuploader/tests/
Package: ckanext-nhm
ckanext-nhmA CKAN extension for the Natural History Museum'sData Portal.OverviewThis extension provides theming and specific functionality for the Natural History Museum'sData Portal.The codebase shows how to implement various plugins created by the Museum's developers; notably our newElasticSearch datastorewith versioned records.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.iniPre-install setupThis package depends onckanext-dcat==1.3.0, but since that isn't available on PyPI it's not listed in the package dependencies.Install it with:pipinstallgit+https://github.com/ckan/ckanext-dcat@v1.3.0#egg=ckanext-dcatInstalling from PyPIpipinstallckanext-nhmInstalling from sourceClone the repository into thesrcfolder:cd$INSTALL_FOLDER/src
gitclonehttps://github.com/NaturalHistoryMuseum/ckanext-nhm.gitActivate the virtual env:.$INSTALL_FOLDER/bin/activateInstall via pip:pipinstall$INSTALL_FOLDER/src/ckanext-nhmInstalling 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 'nhm' to the list of plugins in your$CONFIG_FILE:ckan.plugins=... nhmInstalllesscglobally:npminstall-g"less@~4.1"ConfigurationUsageActionsrecord_showRetrieve an individual record.fromckan.pluginsimporttoolkitdata_dict={'resource_id':RESOURCE_ID,'record_id':RECORD_ID,'version':OPTIONAL_RECORD_VERSION}toolkit.get_action('record_show')(context,data_dict)object_rdfGet record RDF from its occurrence ID.fromckan.pluginsimporttoolkitdata_dict={'uuid':OCCURRENCE_ID,'version':OPTIONAL_RECORD_VERSION}toolkit.get_action('object_rdf')(context,data_dict)Commandscreate-dataset-vocabularyEnsures the default dataset vocabulary and categories exists.ckan-c$CONFIG_FILEnhmcreate-dataset-vocabularyadd-dataset-categoryAdds the given category to the dataset category vocabulary.ckan-c$CONFIG_FILEnhmdelete-dataset-category$NAMEdelete-dataset-categoryDeletes the given dataset category from the vocabulary.ckan-c$CONFIG_FILEnhmcreate-dataset-vocabulary$NAMEreplace-resource-fileReplaces the file associated with$RESOURCE_IDwith$PATH, e.g. to replace a small dummy file
with a large one that was too big to upload initially.ckan-c$CONFIG_FILEnhmreplace-resource-file$RESOURCE_ID$PATHTestingThere 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-nswdesignsystem
ckanext-nswdesignsystemCollection of tools for styling CKAN usingNSW Design SystemCompatibility with core CKAN versions:CKAN versionCompatible?2.9no2.10yesInstallationTo install ckanext-nswdesignsystem:Install it via pip:pipinstallckanext-nswdesignsystemAddnswdesignsystemto theckan.pluginssetting in your CKAN
config fileUsageWhen plugin enabled, visit/nswdesignsystem/componentsURL of the application. It
lists implemented components with the code examples.Components often rely on macros which can be overriden if component requires
customization. Check examples if you need the main macros for the component and
then look at the macro source, to find out, which additional macros it uses.Some of components use helper functions defined in the curent
extension. Usually these are components that require some default data:
collection of links or content. For example,footermacro gets links forupper,lower, andsocialsections fromnswdesignsystem_footer_linkshelper. Such helpers should be chained to use links that make a sense for the
particular portal.Finally, some macros, likemasthead, can be used either as function:{{ masthead() }}or usingcallblock:{% call masthead() %}
    {# additional content for masthead #}
{% endcall %}Eventually you can override quite low-level part of the macro/helper/template
structure, so always keep an eye on changelog. If any of the application parts
have backward incompatible changes, it will be mentioned there.Config settingsNone at presentDevelopmentTo install ckanext-nswdesignsystem for development, activate your CKAN virtualenv and
do:gitclonehttps://github.com/DataShades/ckanext-nswdesignsystem.gitcdckanext-nswdesignsystem
pipinstall-e.Followconventional commits specification. Namely:commit with a new feature start with:feat: <feature description(without angles)>commit with a bugfix start with:fix: <bug description(without angles)>commit with anything not important for changelog:chore: <short message(without angles)>TestsTo run the tests, do:pytestReleasing a new version of ckanext-nswdesignsystemIf ckanext-nswdesignsystem should be available on PyPI you can follow these steps to publish a new version:Update the version number in thesetup.cfgfile. SeePEP
440for how to choose version numbers.Make sure you have the latest version of necessary packages:pipinstall-Utwinebuildgit-changelog-rdev-requirements.txtUpdate changelog:makechangelogCreate a source and binary distributions of the new versionpython-mbuildUpload the source distribution to PyPI:twineuploaddist/*Commit any outstanding changes:gitcommit-a
gitpushTag the new release of the project on GitHub with the version number from
thesetup.cfgfile. For example if the version number insetup.cfgis
0.0.1 then do:git tag v0.0.1
git push --tagsLicenseAGPL
Package: ckanext-oidc-pkce
ckanext-oidc-pkceOpenID connect with PKCE flow authenticator for CKAN.WarningDeveloped for Okta and not tested with other providers.
PRs or feature-requests are welcomeThe plugin adds an extra route to CKAN allowing login through an external
application. This route available at/user/login/oidc-pkce(oid_pkce.loginendpoint). Original authentication system from CKAN is unchanged and it's up to
you(or another extension) to hide original login page if only SSO accounts are
allowed on the portal.RequirementsCompatibility with core CKAN versions:CKAN versionCompatible?2.9yes2.10yesInstallationInstall the packagepipinstallckanext-oidc-pkceAddoidc_pkceto theckan.pluginssetting in your CKAN
config fileAdd SSO settings(referconfig settingssection for details)Config settings# URL of SSO application# Could be overriden at runtime with env var CKANEXT_OIDC_PKCE_BASE_URLckanext.oidc_pkce.base_url=https://12345.example.okta.com# ClientID of SSO application# Could be overriden at runtime with env var CKANEXT_OIDC_PKCE_CLIENT_IDckanext.oidc_pkce.client_id=clientid# ClientSecret of SSO application# (optional, only need id Client App defines a secret, default: "")# Could be overriden at runtime with env var CKANEXT_OIDC_PKCE_CLIENT_SECRETckanext.oidc_pkce.client_secret=clientsecret# Path to the authorization endpont inside SSO application# (optional, default: /oauth2/default/v1/authorize)ckanext.oidc_pkce.auth_path=/auth# Path to the token endpont inside SSO application# (optional, default: /oauth2/default/v1/token)ckanext.oidc_pkce.token_path=/token# Path to the userinfo endpont inside SSO application# (optional, default: /oauth2/default/v1/userinfo)ckanext.oidc_pkce.userinfo_path=/userinfo# Path to the authentication response handler inside CKAN application# (optional, default: /user/login/oidc-pkce/callback)ckanext.oidc_pkce.redirect_path=/local/oidc/handler# URL to redirect user in case of failed login attempt.  When empty(default)# redirects to `came_from` URL parameter if availabe or to CKAN login page# otherwise.# (optional, default: )ckanext.oidc_pkce.error_redirect=/user/register# Scope of the authorization token. The plugin expects at least `sub`,# `email` and `name` attributes.# (optional, default: openid email profile)ckanext.oidc_pkce.scope=email# For newly created CKAN users use the same ID as one from SSO application# (optional, default: false)ckanext.oidc_pkce.use_same_id=true# When connecting to an existing(non-sso) account, override user's password# so that it becomes impossible to login using CKAN authentication system.# Enable this flag if you want to force SSO-logins for all users that once# used SSO-login.# (optional, default: false)ckanext.oidc_pkce.munge_password=trueLicenseAGPL
Package: ckanext-onesaitplatform
ckanext-onesaitplatformExtension and theme for OnesaitPlatform Data Portal.RequirementsThis extension works with CKAN versions 2.8.XIt is necessary to install and activate these extensions:
- ckanext-showcase
- ckanext-oauth2InstallationTo install ckanext-onesaitplatform:Activate your CKAN virtual environment, for example:. /usr/lib/ckan/default/bin/activateInstall the ckanext-onesaitplatform Python package into your virtual environment::pip install ckanext-onesaitplatformAddonesaitplatformto theckan.pluginssetting in your CKAN
config file (by default the config file is located at/etc/ckan/default/production.ini).NOTE: putonesaitplatformbefore any extensionRestart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:sudo service apache2 reloadConfig SettingsAdd these properties to the config file (by default the config file is located at/etc/ckan/default/production.ini):To activate js effects:ckan.template_footer_end = <!-- CKAN onesaitplatform frontend controller -->
  <script type="text/javascript">
  $( window ).on( "load", function() { CKAN_Controller.init(); })
  </script>
  <!-- /CKAN onesaitplatform frontend controller -->If ckan is running with a non root_path set this property to true, else set it to false:ckan.onesaitplatform.login = trueDevelopment InstallationTo install ckanext-onesait for development, activate your CKAN virtualenv and do:git clonehttps://github.com/onesaitplatform/ckanext-onesaitplatform.gitcd ckanext-onesaitplatformpython setup.py developpip install -r dev-requirements.txt
Package: ckanext-openenergy
ckanext-openenergyInstallationTo install ckanext-openenergy:Activate your CKAN virtual environment, for example:. /usr/lib/ckan/default/bin/activateInstall the ckanext-openenergy Python package into your virtual
environment:pip install ckanext-openenergyAddopenenergyto 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 SettingsDocument any optional config settings here. For example:# The minimum number of hours to wait before re-checking a resource
# (optional, default: 24).
ckanext.openenergy.some_setting = some_default_valueDevelopment InstallationTo install ckanext-openenergy for development, activate your CKAN
virtualenv and do:git clone https://github.com/openclimatefix/ckanext-openenergy.git
cd ckanext-openenergy
python setup.py developDeploying a new version to PyPigittag0.0.5
gitpush--tags

pythonsetup.pysdist
python3-mtwineuploaddist/*
Package: ckanext-openformat
.. You should enable this project on travis-ci.org and coveralls.io to makethese badges work. The necessary Travis and Coverage config files have beengenerated for you... image:: https://travis-ci.org/ericsnth/ckanext-openformat.svg?branch=master:target: https://travis-ci.org/ericsnth/ckanext-openformat.. image:: https://coveralls.io/repos/ericsnth/ckanext-openformat/badge.svg:target: https://coveralls.io/r/ericsnth/ckanext-openformat.. image:: https://pypip.in/download/ckanext-openformat/badge.svg:target: https://pypi.python.org/pypi//ckanext-openformat/:alt: Downloads.. image:: https://pypip.in/version/ckanext-openformat/badge.svg:target: https://pypi.python.org/pypi/ckanext-openformat/:alt: Latest Version.. image:: https://pypip.in/py_versions/ckanext-openformat/badge.svg:target: https://pypi.python.org/pypi/ckanext-openformat/:alt: Supported Python versions.. image:: https://pypip.in/status/ckanext-openformat/badge.svg:target: https://pypi.python.org/pypi/ckanext-openformat/:alt: Development Status.. image:: https://pypip.in/license/ckanext-openformat/badge.svg:target: https://pypi.python.org/pypi/ckanext-openformat/:alt: License=============ckanext-openformat=============------------Installation------------.. Add any additional install steps to the list below.For example installing any non-Python dependencies or adding any requiredconfig settings.To install ckanext-openformat:1. Activate your CKAN virtual environment, for example::. /usr/lib/ckan/default/bin/activate2. Install the ckanext-openformat Python package into your virtual environment::pip install ckanext-openformat3. Add ``openformat`` 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 reload---------------Config Settings---------------Configure /etc/ckan/default/production.ini with this configuration:# List of allowed file extension in resources# (optional, default: csv xls xlsx doc docx pdf xml json)ericsnth.ckan.file_extension_allowed = csv xls xlsx doc docx pdf xml json------------------------Development Installation------------------------To install ckanext-openformat for development, activate your CKAN virtualenv anddo::git clone https://github.com/ericsnth/ckanext-openformat.gitcd ckanext-openformatpython setup.py developpip install -r dev-requirements.txt-----------------Author-----------------Ericson Thomas | https://www.linkedin.com/in/ericsnthBackend Programmer Satu Data Indonesia, Kantor Staf Presiden RI
Package: ckanext-openspending
ACKANextension which automatically uploads
budget data packages to the OpenSpending platform. This builds upon theckanext-budgetsextensions which does the heavylifting of creating and marking resources
as budget data packages.When a resource has been marked as a budget data package, this extension
will pick it up from there and submit it for automatic loading into
OpenSpending.InstallationSimply clone this library and runpython setup.py installThen addopenspendingto the list inckan.pluginsin your CKAN
configuration file. Restart your webserver and budget data will now be
automatically loaded for you.ConfigurationThere are two required configurations which must be added to your CKAN
configuration file.ckan.site_url- The URL for the siteopenspending.apikey- The API key for the user on OpenSpending
which will be used to load the dataLicenseCopyright (C) 2014 Open Knowledge FoundationThis program is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at
your option) any later version.This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
General Public License for more details.You should have received a copy of the GNU Affero General Public License
along with this program. If not, seehttp://www.gnu.org/licenses/.
Package: ckanext-or-facet
ckanext-or_facetChange logic of applying facets. With a bit of extra configuration, search for
datasets, includinganyof applied facets, not necessaryallof themInstallationTo install ckanext-or-facet:Install the ckanext-or_facet Python package:pip install ckanext-or-facetAddor_facetto theckan.pluginssetting in your CKAN config fileConfig Settings# List of facets that are using OR when applied.
# (optional, default: empty list).
ckanext.or_facet.optional = tags res_format
Package: ckanext-pdfview
ckanext-pdfviewThis extension provides a view plugin for PDF files using anhtml object tag.RequirementsThis extension works with CKAN >= 2.7 and runs both on Python 2.7 and 3.6+.InstallationTo install ckanext-pdfview:Activate your CKAN virtual environment, for example:source /usr/lib/ckan/default/bin/activateInstall the ckanext-pdfview Python package into your virtual environment:pip install ckanext-pdfviewAddpdf_viewto theckan.pluginssetting in your CKAN
config file (by default the config file is located at/etc/ckan/default/production.ini).If you want to render PDF files which are not located in the same server as
CKAN you also need to enable theresource_proxyplugin.Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu:sudo service apache2 reloadDevelopment InstallationTo install ckanext-pdfview for development, activate your CKAN virtualenv and
do:git clone https://github.com/ckan/ckanext-pdfview.git
cd ckanext-pdfview
pip install -r dev-requirements.txt
python setup.py developRunning the TestsTo run the tests, do:pytest --ckan-ini=test.ini ckanext/pdfviewRegistering ckanext-pdfview on PyPIckanext-pdfview should be availabe on PyPI ashttps://pypi.python.org/pypi/ckanext-pdfview. 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-pdfviewckanext-pdfview is availabe on PyPI ashttps://pypi.python.org/pypi/ckanext-pdfview.
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-pgda-gt-theme
ckanext-pgda_gt_themeRequirementsFor example, you might want to mention here which versions of CKAN this
extension works with.InstallationTo install ckanext-pgda_gt_theme:Activate your CKAN virtual environment, for example:. /usr/lib/ckan/default/bin/activateInstall the ckanext-pgda_gt_theme Python package into your virtual environment:pip install ckanext-pgda_gt_themeAddpgda_gt_themeto 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 SettingsDocument any optional config settings here. For example:# The minimum number of hours to wait before re-checking a resource
# (optional, default: 24).
ckanext.pgda_gt_theme.some_setting = some_default_valueDevelopment InstallationTo install ckanext-pgda_gt_theme for development, activate your CKAN virtualenv and
do:git clone https://github.com/RedCiudadana/ckanext-pgda_gt_theme.git
cd ckanext-pgda_gt_theme
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.pgda_gt_theme --cover-inclusive --cover-erase --cover-testsRegistering ckanext-pgda_gt_theme on PyPIckanext-pgda_gt_theme should be availabe on PyPI ashttps://pypi.python.org/pypi/ckanext-pgda_gt_theme. 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-pgda_gt_themeckanext-pgda_gt_theme is availabe on PyPI ashttps://pypi.python.org/pypi/ckanext-pgda_gt_theme.
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-pygments
ckanext-pygmentsThis extension provides a preview with syntax highlight for multiple resources formatsTODOtry to implement cache for preview to recalculate only styles. The structure could be pretty big so it must be taken into account.this solves problem with big resources and remote resourceswe must invalidate the cache on resources update/deleterewrite preview initialization with ajax to load page fasterif caching does not fit us, think aboutload morebutton and ajax approachupdate doc to make it beautifulConfig settingsSupported config options:ckanext.pygments.supported_formats(optional, default:sql html xhtml htm xslt py pyw pyi jy sage sc rs rs.in rst rest md markdown xml xsl rss xslt xsd wsdl wsf json jsonld yaml yml dtd php inc rdf ttl js).
Specify the list of supported formats.ckanext.pygments.max_size(optional, default:1048576).
Specify how many bytes we are going to render from file. Default to 1MB.
Set to-1if you want to disable a limit. This can cause the page to load very slowly.TestsTo run the tests, do:pytest --ckan-ini=test.iniLicenseAGPL