Skip to content
Snippets Groups Projects
Commit f5f51bd1 authored by Ankit Izardar's avatar Ankit Izardar
Browse files

Update 8 files

- /Create_Project_and_subfolder.py
- /Create_Project.py
- /Get_projects_list.py
- /Site_Admin_Scripts/Create_Project_and_subfolder.py
- /Site_Admin_Scripts/Create_Project.py
- /Site_Admin_Scripts/Get_projects_list.py
- /Site_Admin_Scripts/README.md
- /README.md
parent 5cfb5d7a
No related branches found
No related tags found
No related merge requests found
# LabKey Scripts
# 🧩 LabKey Python Scripts
This repository contains Python scripts that perform various tasks using the LabKey Python API. These scripts help interact with LabKey Server for data retrieval, updates, and management tasks.
## 📂 Project Management Scripts
This directory includes Python scripts that leverage the LabKey Python API to perform project management tasks, requiring Site Admin privileges.
## Requirements
- Python 3.x
- `labkey` Python package
- `.netrc` file for authentication (https://www.labkey.org/Documentation/wiki-page.view?name=netrc)
## Scripts Overview
### 1. Create_Project.py
- Creates a new project in LabKey.
- Takes a **project name** as a command-line argument.
- If the project already exists, it notifies the user.
**Usage:**
```bash
python Create_Project.py <project_name>
```
### 2. Create_Project_and_subfolder.py
- Creates a project and a **Sample Manager** type subfolder in LabKey.
- Takes both a **project name** and a **subfolder name** as arguments.
**Usage:**
```bash
python Create_Project_and_subfolder.py <project_name> <subfolder_name>
```
### 3. Get_projects_list.py
- Connects to the LabKey server using credentials stored in a `.netrc` file.
- Retrieves a list of projects and folders.
**Usage:**
```bash
python Get_projects_list.py
```
## 🧪 Sample Manager Automation Scripts
This directory contains a Python script that automates the creation and population of projects, studies, patients, samples, and storage hierarchies in LabKey Sample Manager using structured data from Excel files.
## Contributing
Feel free to submit pull requests for enhancements or bug fixes. Ensure that your code follows best practices and includes comments where necessary.
......@@ -46,4 +14,3 @@ This project is licensed under the MIT License.
## Contact
For questions or issues, reach out to scicore-admin@unibas.ch.
\ No newline at end of file
File moved
File moved
# LabKey Scripts
This repository provides Python scripts that leverage the LabKey Python API to streamline Project management on a LabKey Server. These scripts are intended for users with Site Admin privileges and are designed to enhance operational efficiency and server interaction.
## Requirements
- Python 3.x
- `labkey` Python package
- `.netrc` file for authentication (https://www.labkey.org/Documentation/wiki-page.view?name=netrc)
## Scripts Overview
### 1. Create_Project.py
- Creates a new project in LabKey.
- Takes a **project name** as a command-line argument.
- If the project already exists, it notifies the user.
**Usage:**
```bash
python Create_Project.py <project_name>
```
### 2. Create_Project_and_subfolder.py
- Creates a project and a **Sample Manager** type subfolder in LabKey.
- Takes both a **project name** and a **subfolder name** as arguments.
**Usage:**
```bash
python Create_Project_and_subfolder.py <project_name> <subfolder_name>
```
### 3. Get_projects_list.py
- Connects to the LabKey server using credentials stored in a `.netrc` file.
- Retrieves a list of projects and folders.
**Usage:**
```bash
python Get_projects_list.py
```
## Contributing
Feel free to submit pull requests for enhancements or bug fixes. Ensure that your code follows best practices and includes comments where necessary.
## License
This project is licensed under the MIT License.
## Contact
For questions or issues, reach out to scicore-admin@unibas.ch.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment