ProPyCore


NameProPyCore JSON
Version 0.5.4 PyPI version JSON
download
home_pagehttps://github.com/rogers-obrien-rad/ProPyCore
SummaryInteract with Procore through Python for data connection applications
upload_time2025-02-06 18:23:29
maintainerNone
docs_urlNone
authorHagen E. Fritz
requires_python>=3.6
licenseNone
keywords procore api python sdk
VCS
bugtrack_url
requirements requests fuzzywuzzy python-Levenshtein python-dotenv
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![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/4a/9b/1ebbbc5453d24779312206cb79d15860e6af0e5d64acd8e90bf2ed7ebc9e/propycore-0.5.4.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.4",
    "project_urls": {
        "Homepage": "https://github.com/rogers-obrien-rad/ProPyCore"
    },
    "split_keywords": [
        "procore",
        " api",
        " python",
        " sdk"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "49dd7ded8bab06c646c7042dc787652c17d7a19170feafd20c53e3178548980b",
                "md5": "cc6fa83e78e474ddcbb8451e1a7a0e68",
                "sha256": "ec6922033e8297695913ed0c05e46187b9dce4f4c06b33cffbac6b7abc5be02c"
            },
            "downloads": -1,
            "filename": "ProPyCore-0.5.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cc6fa83e78e474ddcbb8451e1a7a0e68",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 54205,
            "upload_time": "2025-02-06T18:23:27",
            "upload_time_iso_8601": "2025-02-06T18:23:27.546860Z",
            "url": "https://files.pythonhosted.org/packages/49/dd/7ded8bab06c646c7042dc787652c17d7a19170feafd20c53e3178548980b/ProPyCore-0.5.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4a9b1ebbbc5453d24779312206cb79d15860e6af0e5d64acd8e90bf2ed7ebc9e",
                "md5": "d97a7b0a76c968fba79eea8d1a9950f2",
                "sha256": "b1b1bf51d7cdd1408e4a9859f93315bbb0e61e58ad80fed04267ff8e8feff838"
            },
            "downloads": -1,
            "filename": "propycore-0.5.4.tar.gz",
            "has_sig": false,
            "md5_digest": "d97a7b0a76c968fba79eea8d1a9950f2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 29395,
            "upload_time": "2025-02-06T18:23:29",
            "upload_time_iso_8601": "2025-02-06T18:23:29.961201Z",
            "url": "https://files.pythonhosted.org/packages/4a/9b/1ebbbc5453d24779312206cb79d15860e6af0e5d64acd8e90bf2ed7ebc9e/propycore-0.5.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-06 18:23:29",
    "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"
}
        
Elapsed time: 0.39320s