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
from pythosf import client
from pythosf.utils import bearer_token_auth
test_session = client.Session(api_base_url="https://staging-api.osf.io/", auth=bearer_token_auth(STAGING_TOKEN))
new_node = client.Node(session=test_session).create(title="Quick test 4")
child_node = new_node.create_child(title="Child test 1")
print(getattr(new_node, 'title', None))
print(getattr(new_node, 'date_modified', None))
print(getattr(child_node, 'title', None))
print(getattr(child_node, 'date_modified', None))
child_node.delete(auth=bearer_token_auth(STAGING_TOKEN))
new_node.delete(auth=bearer_token_auth(STAGING_TOKEN))
some_project = client.Node(session=test_session, id='9h53q')
providers = some_project.get_providers()
print(getattr(some_project, 'title', None))
my_provider = None
for provider in providers:
if provider.name == TEST_NODE_PROVIDER:
my_provider = provider
break
my_provider.get(retrieve_all=True)
files = my_provider.files
for file in files:
if file.name == '1.png':
my_file = file
elif file.name == 'ten':
my_folder = file
my_file.move(to_folder=my_folder, conflict='replace')
```
Metadata
Release files for pythosf 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pythosf-0.0.9-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pythosf-0.0.9-py2.py3-none-any.whl |
Release files / pythosf-0.0.9-py2.py3-none-any.whl
| Download URL | pythosf-0.0.9-py2.py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a5cf639e8fb4e09b3477aecc1737ed2a1a598bac2961a5fcc781d8352481bf71
|
|
BLAKE2b-256 checksum How to use checksums |
fe5d0f985e7b8e4e9c860e2fe4effe15ba51d77bfcbb21b944a754fe0f8e7026
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pythosf 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.