SafetyCulture Python SDK and export toolsb
Project description
# safetypy (SafetyCulture Python SDK)
Python SDK for interacting with the SafetyCulture API
## Installation
$ `pip install safetyculture-sdk-python`
This will install
* SafetyCulture Python SDK
* SafetyCulture Exporter Script
* README files
### Basic Usage of the SafetyCulture Python SDK
1. Import `safetypy` in a python module: `import safetpy`
2. Create an instance of safetypy.SafetyCulture class: `sc = safetypy.SafetyCulture(YOUR_SAFETYCULTURE_API_TOKEN)`
#### For more information regarding the Python SDK functionality
1. Open the Python interpreter by typing `python`
2. type `import safetypy`
3. type `help(safetypy.SafetyCulture)`
### Basic Usage of the Exporter script
1. Copy and paste this text into a file named `config.yaml`:
```
API:
token: YOUR_SAFETYCULTURE_API_TOKEN
export_options:
export_path:
timezone:
filename:
csv_options:
export_inactive_items: false
export_profiles:
sync_delay_in_seconds:
media_sync_offset_in_seconds:
```
2. Replace YOUR_SAFETYCULTURE_API_TOKEN with your API Token. See how to generate an API token [here](https://support.safetyculture.com/integrations/how-to-get-an-api-token/).
3. Type the command `safetyculture_audit_exporter --config=/path/to/config.yaml` with the full path to your config.yaml file to start exporting audits in PDF format.
4. See [here](https://github.com/SafetyCulture/safetyculture-sdk-python/blob/INTG-539-pip_install/tools/exporter/ReadMe.md) for more information about how to use the exporter tool.
## License
Copyright 2017 SafetyCulture Pty Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Python SDK for interacting with the SafetyCulture API
## Installation
$ `pip install safetyculture-sdk-python`
This will install
* SafetyCulture Python SDK
* SafetyCulture Exporter Script
* README files
### Basic Usage of the SafetyCulture Python SDK
1. Import `safetypy` in a python module: `import safetpy`
2. Create an instance of safetypy.SafetyCulture class: `sc = safetypy.SafetyCulture(YOUR_SAFETYCULTURE_API_TOKEN)`
#### For more information regarding the Python SDK functionality
1. Open the Python interpreter by typing `python`
2. type `import safetypy`
3. type `help(safetypy.SafetyCulture)`
### Basic Usage of the Exporter script
1. Copy and paste this text into a file named `config.yaml`:
```
API:
token: YOUR_SAFETYCULTURE_API_TOKEN
export_options:
export_path:
timezone:
filename:
csv_options:
export_inactive_items: false
export_profiles:
sync_delay_in_seconds:
media_sync_offset_in_seconds:
```
2. Replace YOUR_SAFETYCULTURE_API_TOKEN with your API Token. See how to generate an API token [here](https://support.safetyculture.com/integrations/how-to-get-an-api-token/).
3. Type the command `safetyculture_audit_exporter --config=/path/to/config.yaml` with the full path to your config.yaml file to start exporting audits in PDF format.
4. See [here](https://github.com/SafetyCulture/safetyculture-sdk-python/blob/INTG-539-pip_install/tools/exporter/ReadMe.md) for more information about how to use the exporter tool.
## License
Copyright 2017 SafetyCulture Pty Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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
Built Distribution
File details
Details for the file safetyculture-sdk-python-1.4.1.tar.gz
.
File metadata
- Download URL: safetyculture-sdk-python-1.4.1.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 503e7b5008b4f260ecdfe376c6448a2f70d94c505b50bd2dd6ce07aea4855352 |
|
MD5 | 6a80598d0d2553eef85c2bdbfac1f748 |
|
BLAKE2b-256 | 331843cb3604c3461a370c0a03557a835be3751fa49f9aad1961cd20a672db8b |
File details
Details for the file safetyculture_sdk_python-1.4.1-py2-none-any.whl
.
File metadata
- Download URL: safetyculture_sdk_python-1.4.1-py2-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02c7f1f6116ac345e2fe5da7e146f3933ea19a0c64ff50e16563d64d2de5998e |
|
MD5 | 58c9cd1599d1495376ac5150565c22f4 |
|
BLAKE2b-256 | c37b4179bda7ac009bb0b1f0659f7f5a121d1c9abbb22a45628bd3d95ecf6eae |