Skip to content

Commit 78897e8

Browse files
committed
enh doc
1 parent 6b6c8fe commit 78897e8

File tree

1 file changed

+70
-12
lines changed

1 file changed

+70
-12
lines changed

docs/doc_entrypoint.md

Lines changed: 70 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,74 @@
1-
<h1 align="center">oSPARC-Simcore clients</h1>
1+
# osparc
22

3-
[o²S²PARC](https://sparc.science/resources/4LkLiH5s4FV0LVJd3htsvH) is
4-
an open, cloud-based platform for the development, execution and sharing of
5-
computational models, simulations, and data analysis pipelines, and the
6-
presentation of results.
3+
[![PyPI version](https://img.shields.io/pypi/v/osparc)](https://pypi.org/project/osparc/)
4+
[![PyPI - Release](https://img.shields.io/pypi/status/osparc)](https://pypi.org/project/osparc/#history)
5+
[![PyPI Downloads](https://img.shields.io/pypi/dm/osparc)](https://pypi.org/project/osparc/)
76

8-
This site documents clients for interacting with o²S²PARC programmatically.
97

10-
Please first choose the version of the client you are using. Note that the API (and hence tutorials) does not change with patches, meaning if you are using client version, say 0.3.2, then you can use the tutorials associated with version 0.3.0.
11-
* Python API:
12-
* [v0.5.0](clients/python/docs/v0.5.0/README.md)
13-
* [v0.6.0](clients/python/docs/v0.6.0/README.md)
8+
`osparc` is a Python package that provides tools and functionalities to interact with the o²S²PARC platform. It allows for seamless integration and automation of workflows in simulation science, making it easier to handle simulations and access [o²S²PARC services](https://github.com/ITISFoundation/osparc-simcore)
149

15-
We're committed to continually expanding and refining our platform.
16-
Stay tuned for future updates and additional API client offerings.
10+
## Features
11+
12+
- Interact with the o²S²PARC platform
13+
- Automate workflows and simulations
14+
- Easily manage data and compute resources
15+
16+
## Installation
17+
18+
You can install `osparc` directly from PyPI:
19+
20+
```bash
21+
pip install osparc
22+
```
23+
24+
## Usage
25+
26+
To get started with `osparc`, import the package and follow the examples in the [documentation](https://github.com/your-username/osparc/wiki).
27+
28+
29+
```python
30+
from osparc import ApiClient, UsersApi
31+
32+
cfg = Configuration(
33+
host=os.environ["OSPARC_API_HOST"],
34+
username=os.environ["OSPARC_API_KEY"],
35+
password=os.environ["OSPARC_API_SECRET"],
36+
)
37+
38+
with ApiClient(cfg) as api_client:
39+
40+
users_api = UsersApi(api_client)
41+
42+
profile = users_api.get_my_profile()
43+
print(profile)
44+
45+
#
46+
# {'first_name': 'foo',
47+
# 'gravatar_id': 'aa33fssec77ea434c2ea4fb92d0fd379e',
48+
# 'groups': {'all': {'description': 'all users',
49+
# 'gid': '1',
50+
# 'label': 'Everyone'},
51+
# 'me': {'description': 'primary group',
52+
# 'gid': '2',
53+
# 'label': 'foo'},
54+
# 'organizations': []},
55+
# 'last_name': '',
56+
# 'login': '[email protected]',
57+
# 'role': 'USER'}
58+
#
59+
```
60+
To dive deeper check these tutorials
61+
- [v0.5](clients/python/docs/v0.5.0/README.md)
62+
- [v0.6](clients/python/docs/v0.6.0/README.md)
63+
64+
## Contributing
65+
66+
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details on how to get involved.
67+
68+
## License
69+
70+
This project is licensed under the MIT License. See the [LICENSE](../LICENSE) file for details.
71+
72+
---
73+
74+
Make sure to replace `your-username` with your actual GitHub username or repository link, and feel free to modify the sections as necessary.

0 commit comments

Comments
 (0)