Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
f028057
Merge branch 'develop' into docs
rjmello Oct 27, 2022
f69f23e
Docs: create simulation tutorial
rjmello Nov 1, 2022
430b010
Merge branch 'develop' into docs
rjmello Nov 3, 2022
8d39d82
Merge pull request #54 from C-Accel-CRIPT/docs
rjmello Nov 3, 2022
0f7b9f6
Set get_level default value to 1
rjmello Nov 3, 2022
761edb4
Delete tutorial.md
rjmello Nov 3, 2022
a9c6761
Updated error handling with more descriptive message
CVilla17 Nov 3, 2022
a2e3932
Merge pull request #55 from C-Accel-CRIPT/get-level
brili Nov 4, 2022
7c654cc
Fix typos in tutorials
Nov 4, 2022
69f43ba
from e to make exception more clear
CVilla17 Nov 4, 2022
e821926
Merge pull request #57 from C-Accel-CRIPT/docs-typo
dylanwal Nov 4, 2022
1e077be
Merge pull request #56 from C-Accel-CRIPT/fix_invalidHostGet
brili Nov 4, 2022
f4a8529
adding .vscode into the list of ignored packages
nh916 Nov 15, 2022
01f149c
README.md cosmetic updates
nh916 Nov 15, 2022
c4a7f63
Update issue templates
basuhi-r Nov 16, 2022
f219a18
Merge pull request #58 from C-Accel-CRIPT/develop_gitignore
dylanwal Nov 16, 2022
e33467d
Merge pull request #60 from C-Accel-CRIPT/basuhi-r-patch-1
dylanwal Nov 16, 2022
667f111
updated README.md to be a bit nicer as requested in the comments
nh916 Nov 16, 2022
6216ba4
made colored CRIPT logo transparent that works for both light and dar…
nh916 Nov 16, 2022
25ea8ab
changed CRIPT Python SDK to h1 and removed horizontal line after the …
nh916 Nov 17, 2022
1294d47
updated license badge link, added python 3.9+ as a requirement in the…
nh916 Nov 17, 2022
b2f7528
Merge pull request #59 from C-Accel-CRIPT/update-readme
brili Nov 18, 2022
345c2d0
created a CRIPT error for Invalid Storage Authentication code
nh916 Nov 28, 2022
c00340a
added the InvalidAuthCode Exception for whenever Globus storage authe…
nh916 Nov 28, 2022
14e5168
using absolute import instead of relative import
nh916 Nov 30, 2022
a2673dd
Merge pull request #64 from C-Accel-CRIPT/develop_storage_code_error
nh916 Nov 30, 2022
0bfa494
Extract URL when UniqueNodeError is thrown
Dec 1, 2022
10050f1
Merge pull request #68 from C-Accel-CRIPT/improve-unq-node-exc
dylanwal Dec 1, 2022
8df6306
add trunk init
Dec 13, 2022
e09dd3e
add first auto format pass
Dec 13, 2022
d84fdfe
manually adjust files
Dec 13, 2022
297c143
add autochecking workflow to verify trunk compliancy
Dec 13, 2022
3eb73da
add trunk instructions to readme
Dec 13, 2022
ca4756a
enable automatic git hooks
Dec 13, 2022
518ebd6
fix issues
Dec 13, 2022
341940f
test target correct branches
Dec 13, 2022
84b2ceb
add automatic testing with pytest
Dec 13, 2022
d58926f
enable manual trigger
Dec 13, 2022
cd6a9c4
adjust names
Dec 13, 2022
f2728c0
install dependencies
Dec 13, 2022
baa2d21
Merge pull request #74 from C-Accel-CRIPT/trunk
Dec 14, 2022
145383c
rename test file
Dec 14, 2022
aa3ff87
requirements for tests
Dec 14, 2022
14691c6
add docker auth to ci
brili Dec 17, 2022
abaccb4
env to ci
brili Dec 17, 2022
d9c48fd
add env to ci
brili Dec 17, 2022
2afeaf2
add can_edit to base node
brili Dec 17, 2022
ed50670
fix formatting issues
brili Dec 17, 2022
247a3ea
fix constructor args
brili Dec 17, 2022
650a201
fix isort and flake8 issues
brili Dec 17, 2022
d91c525
Auto fix formationg issues Checking 0% [> …
Dec 19, 2022
47314ac
manually fix issues
Dec 19, 2022
d7f8ca1
remove test/requirements.yml
Dec 19, 2022
81429b2
Merge pull request #75 from C-Accel-CRIPT/CI-tests
Dec 20, 2022
d55c0a2
patching create node issue within the utils.py
nh916 Jan 4, 2023
1f016e4
Merge pull request #76 from C-Accel-CRIPT/patch_create_node
nh916 Jan 4, 2023
c29e815
fixed the issue with experiment
nh916 Jan 11, 2023
10ede3d
fixed data to default to get_level=0
nh916 Jan 11, 2023
fa08d27
developed local tests with local criptapp
nh916 Jan 11, 2023
f67724b
made updates
nh916 Jan 11, 2023
1d91299
increment SDK version from 0.6.0 to 0.6.1
nh916 Jan 11, 2023
cb13a0a
changing test_nodes_local.py to nodes_local_checks.py
nh916 Jan 11, 2023
e95e051
formatted files
nh916 Jan 11, 2023
0460377
formatted files
nh916 Jan 11, 2023
da6b30d
Merge pull request #79 from C-Accel-CRIPT/stabilize_sdk
nh916 Jan 11, 2023
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
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
59 changes: 59 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Install and Pytests

on:
push:
branches:
- master
- develop
- trunk-merge/**
pull_request:
branches:
- master
- develop
workflow_dispatch:
workflow_call:

jobs:
test:
runs-on: ${{ matrix.os }}
environment: testing
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
python-version: [3.9]
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependecies
run: |
python -m pip install --upgrade pip
pip install -r requirements_test.txt

- name: Install CRIPT Python SDK
run: pip install .

- name: Run pytest
env:
IMAGE_VERSION: ${{ secrets.IMAGE_VERSION }}
ENVIRONMENT: ${{ secrets.ENVIRONMENT }}
DEBUG: ${{ secrets.DEBUG }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
GLOBUS_AUTH_CLIENT_ID: ${{ secrets.GLOBUS_AUTH_CLIENT_ID }}
GLOBUS_AUTH_SECRET: ${{ secrets.GLOBUS_AUTH_SECRET }}
GLOBUS_ACCESS_MANAGER_CLIENT_ID: ${{ secrets.GLOBUS_ACCESS_MANAGER_CLIENT_ID }}
GLOBUS_ACCESS_MANAGER_SECRET: ${{ secrets.GLOBUS_ACCESS_MANAGER_SECRET }}
GLOBUS_NATIVE_CLIENT_ID: ${{ secrets.GLOBUS_NATIVE_CLIENT_ID }}
GLOBUS_ENDPOINT_ID: ${{ secrets.GLOBUS_ENDPOINT_ID }}
STORAGE_PROVIDER: ${{ secrets.GLOBUS_ENDPOINT_ID }}
STORAGE_PATH: ${{ secrets.GLOBUS_ENDPOINT_ID }}
run: |
python -m pytest
25 changes: 25 additions & 0 deletions .github/workflows/trunk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: trunk

on:
push:
branches:
- master
- develop
- trunk-merge/**
pull_request:
branches:
- master
- develop
# Allows you (and trunk) to run this workflow
workflow_dispatch:
workflow_call:

jobs:
trunk:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Trunk Check
uses: trunk-io/trunk-action@v1
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,12 @@ cython_debug/
# Custom
api_key.txt

# jet brains IDE config directory
.idea/

# vscode config directory
.vscode/

# PyCharm
# JetBrains specific template is maintainted in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
Expand Down
7 changes: 7 additions & 0 deletions .trunk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*out
*logs
*actions
*notifications
plugins
user_trunk.yaml
user.yaml
3 changes: 3 additions & 0 deletions .trunk/configs/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Autoformatter friendly flake8 config (all formatting rules disabled)
[flake8]
extend-ignore = D1, D2, E1, E2, E3, E501, W1, W2, W3, W5
2 changes: 2 additions & 0 deletions .trunk/configs/.isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[settings]
profile=black
10 changes: 10 additions & 0 deletions .trunk/configs/.markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Autoformatter friendly markdownlint config (all formatting rules disabled)
default: true
blank_lines: false
bullet: false
html: false
indentation: false
line_length: false
spaces: false
url: false
whitespace: false
32 changes: 32 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: 0.1
cli:
version: 1.2.1
plugins:
sources:
- id: trunk
ref: v0.0.8
uri: https://github.com/trunk-io/plugins
lint:
enabled:
- [email protected]
- git-diff-check
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
runtimes:
enabled:
- [email protected]
- [email protected]
- [email protected]
actions:
disabled:
enabled:
- trunk-announce
- trunk-upgrade-available
- trunk-check-pre-push
- trunk-fmt-pre-commit
Binary file added CRIPT_full_logo_colored_transparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 36 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,46 @@
# CRIPT Python SDK

**CRIPT** (the _Community Resource for Innovation in Polymer Technology_) is a web-based platform for capturing and sharing polymer data.
![CRIPT Logo](/CRIPT_full_logo_colored_transparent.png)

Programmatic access to the platform is enabled through the CRIPT Python SDK.
[![License](https://img.shields.io/github/license/C-Accel-CRIPT/cript?style=flat-square)](https://github.com/C-Accel-CRIPT/cript/blob/master/LICENSE.txt)
[![Python](https://img.shields.io/badge/Language-Python%203.9+-blue?style=flat-square&logo=python)](https://www.python.org/)
[![Code style is black](https://img.shields.io/badge/Code%20Style-black-000000.svg?style=flat-square&logo=python)](https://github.com/psf/black)
[![Link to CRIPT website](https://img.shields.io/badge/platform-criptapp.org-blueviolet?style=flat-square)](https://criptapp.org/)
[![CRIPT Blog Link](https://img.shields.io/badge/Blog-blog.criptapp.org-blueviolet?style=flat-square)](https://blog.criptapp.org)
[![Material MkDocs](https://img.shields.io/badge/Docs-mkdocs--material-blueviolet?style=flat-square&logo=markdown)](https://squidfunk.github.io/mkdocs-material/)

## Quickstart
## What is it?

### Prerequisites
- Python 3.9+
- Internet access
The CRIPT Python SDK allows programmatic access to the [CRIPT platform](https://criptapp.org). It can help automate uploading your data to CRIPT, and aims to allow for manipulation of your CRIPT data through the python language. This is a perfect tool to use when you have some experience with python and have large amount of data to upload to [CRIPT](https://criptapp.org).

---

## Installation

CRIPT Python SDK requires Python 3.9+

The latest released of CRIPT Python SDK is available on [Python Package Index (PyPI)](https://pypi.org/project/cript/)

### Install with pip
```bash
pip install cript
```

## Links
- SDK documentation: https://c-accel-cript.github.io/cript/
- Platform: https://criptapp.org
- Blog: https://blog.criptapp.org
---

## Documentation

To learn more about the CRIPT Python SDK please check the [CRIPT-SDK documentation](https://c-accel-cript.github.io/cript/)

---

## Release Notes

For updates and release notes please visit the [CRIPT blog](https://blog.criptapp.org)

### Software development

You are welcome to contribute code via PR to this repository.
For the developmet, we are using [trunk.io](https://trunk.io) to achieve a consistent coding style.
You can run `./trunk fmt` to auto-format your contributions and `./trunk check` to verify your contribution complies with our standard via trunk.
We will run the same test automatically before we are able to merge the code.
Please, let us know if there are any issues.
Loading