Datalad extension to apply lgpd patterns
Project description
DataLad extension template
This repository contains an extension template that can serve as a starting point for implementing a DataLad extension. An extension can provide any number of additional DataLad commands that are automatically included in DataLad's command line and Python API.
For a version, clone this repository and install the demo extension via
pip install -e . or pip install lgpdextension-datalad
DataLad will now expose a new command suite with a hello... command.
% datalad --help |grep -B2 -A2 hello
*DataLad command suite*
lgpd-extension
Apply lgpd patterns
-p | --pathfile
Full address to configuration file
-c | --createbase
Create the default configuration file
To start implementing your own extension, use this template, and adjust as necessary. A good approach is to
- Pick a name for the new extension.
- Look through the sources and replace
datalad_lgpdextensionwithdatalad_<newname>(hint:git grep datalad_lgpdextensionshould find all spots). - Delete the example command implementation in
datalad_lgpdextension/__init__.pyby (re)moving thelgpdextensionclass. - Implement a new command, and adjust the
command_suiteindatalad_lgpdextension/__init__.pyto point to it. - Replace
lgpd_extensionwith the name of the new command indatalad_lgpdextension/tests/test_register.pyto automatically test whether the new extension installs correctly. - Adjust the documentation in
docs/source/index.rst. - Replace this README.
- Update
setup.cfgwith appropriate metadata on the new extension.
You can consider filling in the provided .zenodo.json file with contributor information and meta data to acknowledge contributors and describe the publication record that is created when you make your code citeable by archiving it using zenodo.org. You may also want to consider acknowledging contributors with the allcontributors bot.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datalad-lgpdextension-0.5.0.tar.gz.
File metadata
- Download URL: datalad-lgpdextension-0.5.0.tar.gz
- Upload date:
- Size: 47.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec975df3176a665b074c4d45ee4e6ee64cd9fbe7434de32f3b353d0a377e3b2f
|
|
| MD5 |
cb8be1ee728c8d4d8b831a88dcb424ed
|
|
| BLAKE2b-256 |
3a25e0ed212c66480cea7deb7a1c863eb29bb8d87d225a21ebc5b4b67d81ff35
|
File details
Details for the file datalad_lgpdextension-0.5.0-py3-none-any.whl.
File metadata
- Download URL: datalad_lgpdextension-0.5.0-py3-none-any.whl
- Upload date:
- Size: 33.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7981142bf9a6d002db7f9b7674868029d92b7bb01e61ae3203fa978b34bb3bc1
|
|
| MD5 |
37d15f74e7ae2b94bde9523e2d687fe9
|
|
| BLAKE2b-256 |
c67415ee1bfe668d91330d741bc31c775107ed8f2cfc4513a34e8dbbce5f2698
|