Skip to main content

Interact with Procore through Python for data connection applications

Project description

Contributors Last Commit Test Suite

ro_logo

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 which is meant for Data Connection Applications i.e. "userless access".

Installation

You can install this package with:

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:

Once you have these values, you will use them as parameters in the Procore object:

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 folder for a rather exhaustive list.

Resources

Procore:

GitHub Repositories

License

This repository is licensed through the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ProPyCore-0.0.5.tar.gz (19.6 kB view hashes)

Uploaded Source

Built Distribution

ProPyCore-0.0.5-py3-none-any.whl (34.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page