Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 26 additions & 12 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,64 @@

Work in progress!

# 00.py
# [00-read-items.py]

Read all items.

# 01.py
# [01-download-timestamp-archive.py]

Download all the timestamp archive zip created in the past 7 days.

# 02.py
# [02-patch-metadata-per-category.py]

Look for all items of a particular category and patch the metadata if it is empty.

# 03.py
# [03-experiment-file-handling.py]

Upload, download and delete a file in an experiment.

# 04.py
# [04-create-teamgroup-add-user.py]

Create a teamgroup and add a user in it.

# 05.py
# [05-create-modify-item.py]

Create an item in the database and modify it.

# 06.py
# [06-create-users.py]

Create users in batch.

# 07.py
# [07-patch-sysadmin-settings.py]

Patch instance config: modify the settings of the Sysadmin Panel.

# 08.py
# [08-create-items-add-metadata.py]

Read a CSV file for samples, create them in the database with metadata, tags and links.

# 09-import-csv.py
# [09-import-csv.py]

Read a CSV file containing a list of antibodies and import them in the resource database using the metadata/extra fields.

# 10-date-time-conversions.py
# [10-date-time-conversions.py]

Work with date-time data formats with a demonstration of doing statistics with experiments data.

# 11-resources-categories.py
# [11-resources-categories.py]

Create and edit a Resources Category (Items types).

[00-read-items.py]: https://github.com/elabftw/elabapi-python/blob/master/examples/00-read-items.py
[01-download-timestamp-archive.py]: https://github.com/elabftw/elabapi-python/blob/master/examples/01-download-timestamp-archive.py
[02-patch-metadata-per-category.py]: https://github.com/elabftw/elabapi-python/blob/master/examples/02-patch-metadata-per-category.py
[03-experiment-file-handling.py]: https://github.com/elabftw/elabapi-python/blob/master/examples/03-experiment-file-handling.py
[04-create-teamgroup-add-user.py]: https://github.com/elabftw/elabapi-python/blob/master/examples/04-create-teamgroup-add-user.py
[05-create-modify-item.py]: https://github.com/elabftw/elabapi-python/blob/master/examples/05-create-modify-item.py
[06-create-users.py]: https://github.com/elabftw/elabapi-python/blob/master/examples/06-create-users.py
[07-patch-sysadmin-settings.py]: https://github.com/elabftw/elabapi-python/blob/master/examples/07-patch-sysadmin-settings.py
[08-create-items-add-metadata.py]: https://github.com/elabftw/elabapi-python/blob/master/examples/08-create-items-add-metadata.py
[09-import-csv.py]: https://github.com/elabftw/elabapi-python/blob/master/examples/09-import-csv.py
[10-date-time-conversions.py]: https://github.com/elabftw/elabapi-python/blob/master/examples/10-date-time-conversions.py
[11-resources-categories.py]: https://github.com/elabftw/elabapi-python/blob/master/examples/11-resources-categories.py