![Contributors](https://img.shields.io/github/contributors/rogers-obrien-rad/ProPyCore)
![Last Commit](https://img.shields.io/github/last-commit/rogers-obrien-rad/ProPyCore)
[![Test Suite](https://github.com/rogers-obrien-rad/ProPyCore/actions/workflows/tests.yml/badge.svg)](https://github.com/rogers-obrien-rad/ProPyCore/actions/workflows/tests.yml)
![ro_logo](https://github.com/rogers-obrien-rad/general-template/blob/main/images/ro_logo.png)
# ProPyCore
_A Python-based connection with Procore that doesn't require a user authentication_
This package accesses Procore's API through the _Client Credentials_ [OAuth 2.0 grant type](https://developers.procore.com/documentation/oauth-choose-grant-type) which is meant for _Data Connection Applications_ i.e. "userless access".
## Installation
You can install this package with:
```bash
pip install ProPyCore
```
## Examples
To get started, you need to create an instance of a `Procore` object from `propycore.procore`. To do so, you will need to access information from your Procore Data Connection App:
* **Client ID**: Accessible from your app at [Procore Developers](https://developers.procore.com/signin) - will vary between sandbox and production modes
* **Client Secret**: Accessible from your app at [Procore Developers](https://developers.procore.com/signin) - will vary between sandbox and production modes
* **Redirect URI**: For data connection apps, this value will be "urn:ietf:wg:oauth:2.0:oob"
* **OAuth URL**: Will be "https://sandbox.procore.com" for sandbox environments or "https://app.procore.com" for production
* **Base URL**: Will be "https://sandbox.procore.com" for sandbox environments or "https://app.procore.com" for production
Once you have these values, you will use them as parameters in the `Procore` object:
```python
connection = Procore(
client_id=os.getenv("CLIENT_ID"),
client_secret=os.getenv("CLIENT_SECRET"),
redirect_uri=os.getenv("REDIRECT_URI"),
oauth_url=os.getenv("OAUTH_URL"),
base_url=os.getenv("BASE_URL")
)
```
In this case, I have saved my App information as individual environment variables. For examples on how to access Procore information and create new object, see the [snippets](https://github.com/rogers-obrien-rad/ProPyCore/tree/main/snippets) folder for a rather exhaustive list.
# Resources
### Procore:
* **[Procore Developer Dcoumentation](https://developers.procore.com/documentation/introduction)**: Various articles concerning the setup and use of Procore's API
* **[REST API Reference](https://developers.procore.com/reference/rest/v1/docs/rest-api-overview)**: Endpoints, response samples, and limited code snippets showcasing the use of the API.
### GitHub Repositories
* **[Procore's Own Python Sample](https://github.com/procore/Procore-Sample-Python)**: Includes basic code to setup a Python Flash application but uses the other OAuth 2.0 grant type
* **[Python SDK for Procore](https://github.com/fylein/procore-sdk-py)**: Small SDK that includes basic code to work with Procore. Uses the other OAuth 2.0 grant type.
# License
This repository is licensed through the [MIT License](https://github.com/rogers-obrien-rad/ProPyCore/blob/main/LICENSE).
Raw data
{
"_id": null,
"home_page": "https://github.com/rogers-obrien-rad/ProPyCore",
"name": "ProPyCore",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "procore, api, python, sdk",
"author": "Hagen E. Fritz",
"author_email": "hfritz@r-o.com",
"download_url": "https://files.pythonhosted.org/packages/7b/d7/51cd94d8f84187303d196a103d49c03a01887fcfaa5fc84600ee19d13cb1/propycore-0.5.1.tar.gz",
"platform": null,
"description": "![Contributors](https://img.shields.io/github/contributors/rogers-obrien-rad/ProPyCore)\n![Last Commit](https://img.shields.io/github/last-commit/rogers-obrien-rad/ProPyCore)\n[![Test Suite](https://github.com/rogers-obrien-rad/ProPyCore/actions/workflows/tests.yml/badge.svg)](https://github.com/rogers-obrien-rad/ProPyCore/actions/workflows/tests.yml)\n\n![ro_logo](https://github.com/rogers-obrien-rad/general-template/blob/main/images/ro_logo.png)\n\n# ProPyCore\n_A Python-based connection with Procore that doesn't require a user authentication_\n\nThis package accesses Procore's API through the _Client Credentials_ [OAuth 2.0 grant type](https://developers.procore.com/documentation/oauth-choose-grant-type) which is meant for _Data Connection Applications_ i.e. \"userless access\".\n\n## Installation\nYou can install this package with:\n\n```bash\npip install ProPyCore\n```\n\n## Examples\nTo get started, you need to create an instance of a `Procore` object from `propycore.procore`. To do so, you will need to access information from your Procore Data Connection App:\n* **Client ID**: Accessible from your app at [Procore Developers](https://developers.procore.com/signin) - will vary between sandbox and production modes\n* **Client Secret**: Accessible from your app at [Procore Developers](https://developers.procore.com/signin) - will vary between sandbox and production modes\n* **Redirect URI**: For data connection apps, this value will be \"urn:ietf:wg:oauth:2.0:oob\"\n* **OAuth URL**: Will be \"https://sandbox.procore.com\" for sandbox environments or \"https://app.procore.com\" for production\n* **Base URL**: Will be \"https://sandbox.procore.com\" for sandbox environments or \"https://app.procore.com\" for production\n\nOnce you have these values, you will use them as parameters in the `Procore` object:\n\n```python\nconnection = Procore(\n client_id=os.getenv(\"CLIENT_ID\"),\n client_secret=os.getenv(\"CLIENT_SECRET\"),\n redirect_uri=os.getenv(\"REDIRECT_URI\"),\n oauth_url=os.getenv(\"OAUTH_URL\"),\n base_url=os.getenv(\"BASE_URL\")\n)\n```\n\nIn this case, I have saved my App information as individual environment variables. For examples on how to access Procore information and create new object, see the [snippets](https://github.com/rogers-obrien-rad/ProPyCore/tree/main/snippets) folder for a rather exhaustive list. \n\n# Resources\n\n### Procore:\n* **[Procore Developer Dcoumentation](https://developers.procore.com/documentation/introduction)**: Various articles concerning the setup and use of Procore's API\n* **[REST API Reference](https://developers.procore.com/reference/rest/v1/docs/rest-api-overview)**: Endpoints, response samples, and limited code snippets showcasing the use of the API. \n\n### GitHub Repositories\n* **[Procore's Own Python Sample](https://github.com/procore/Procore-Sample-Python)**: Includes basic code to setup a Python Flash application but uses the other OAuth 2.0 grant type\n* **[Python SDK for Procore](https://github.com/fylein/procore-sdk-py)**: Small SDK that includes basic code to work with Procore. Uses the other OAuth 2.0 grant type. \n\n# License\nThis repository is licensed through the [MIT License](https://github.com/rogers-obrien-rad/ProPyCore/blob/main/LICENSE). \n",
"bugtrack_url": null,
"license": null,
"summary": "Interact with Procore through Python for data connection applications",
"version": "0.5.1",
"project_urls": {
"Homepage": "https://github.com/rogers-obrien-rad/ProPyCore"
},
"split_keywords": [
"procore",
" api",
" python",
" sdk"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7caecedaa093eaa1bebe7e993cf6ced0765aab8c5ef870d3eb7dd91096b95c14",
"md5": "a704a66cec46264f040877b3b64e6a01",
"sha256": "992d262072e30d98a270cf549dde2f0ce4adf7d538ac8c8fe96daba0f4ddf4ff"
},
"downloads": -1,
"filename": "ProPyCore-0.5.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a704a66cec46264f040877b3b64e6a01",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 49978,
"upload_time": "2025-01-20T16:33:09",
"upload_time_iso_8601": "2025-01-20T16:33:09.846349Z",
"url": "https://files.pythonhosted.org/packages/7c/ae/cedaa093eaa1bebe7e993cf6ced0765aab8c5ef870d3eb7dd91096b95c14/ProPyCore-0.5.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7bd751cd94d8f84187303d196a103d49c03a01887fcfaa5fc84600ee19d13cb1",
"md5": "31d636f87c87193438e312803d66ae02",
"sha256": "c7105b0248506de8a6ca719c8c9939dbc4590117ac4779d07033032addd013fe"
},
"downloads": -1,
"filename": "propycore-0.5.1.tar.gz",
"has_sig": false,
"md5_digest": "31d636f87c87193438e312803d66ae02",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 26968,
"upload_time": "2025-01-20T16:33:11",
"upload_time_iso_8601": "2025-01-20T16:33:11.754554Z",
"url": "https://files.pythonhosted.org/packages/7b/d7/51cd94d8f84187303d196a103d49c03a01887fcfaa5fc84600ee19d13cb1/propycore-0.5.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-20 16:33:11",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "rogers-obrien-rad",
"github_project": "ProPyCore",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "requests",
"specs": []
},
{
"name": "fuzzywuzzy",
"specs": []
},
{
"name": "python-Levenshtein",
"specs": []
},
{
"name": "python-dotenv",
"specs": []
}
],
"lcname": "propycore"
}