Python API library for the OSF
Project description
# py-osf
A quick python api client for the Open Science Framework. You're probably better off using [osf-client](https://github.com/osfclient/osfclient) instead.
Example usage:
```py
test_session = client.Session(api_base_url="https://staging-api.osf.io/", token=STAGING_TOKEN)
new_node = client.Node(session=test_session)
new_node.create(title="Quick test 4")
print(getattr(new_node, 'title', None))
print(getattr(new_node, 'date_modified', None))
new_node.delete()
some_project = client.Node(session=test_session, id='9h53q')
some_project.get_providers()
print(getattr(some_project, 'title', None))
```
A quick python api client for the Open Science Framework. You're probably better off using [osf-client](https://github.com/osfclient/osfclient) instead.
Example usage:
```py
test_session = client.Session(api_base_url="https://staging-api.osf.io/", token=STAGING_TOKEN)
new_node = client.Node(session=test_session)
new_node.create(title="Quick test 4")
print(getattr(new_node, 'title', None))
print(getattr(new_node, 'date_modified', None))
new_node.delete()
some_project = client.Node(session=test_session, id='9h53q')
some_project.get_providers()
print(getattr(some_project, 'title', None))
```
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
pythosf-0.0.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for pythosf-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d9aa874fba30a0f05dad23a848adaabf81c1e19ec5199594779a0484b591b36 |
|
MD5 | 78e8dbaa34397aa3056e74259be9b958 |
|
BLAKE2b-256 | d5fa0491612de177676aafe7eff5d3e2dd7c91a2adfe112f44b72cef59dcf79e |