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.1.4.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

ProPyCore-0.1.4-py3-none-any.whl (54.6 kB view details)

Uploaded Python 3

File details

Details for the file propycore-0.1.4.tar.gz.

File metadata

  • Download URL: propycore-0.1.4.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for propycore-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e3a0dc7508bfbd8867c799ddccbab3aa043d7730272878bca609909afdbd2c44
MD5 9707f1e1a132217af26d6055759e40f6
BLAKE2b-256 a6267724bb0be85332726d3a7430a9a6719d189c91a71e19418e849bd722a53d

See more details on using hashes here.

File details

Details for the file ProPyCore-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ProPyCore-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 54.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for ProPyCore-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e045668ad9f41559e18952c27f8b55bdadbf6b027900ce454a1ad26936dceb
MD5 ca7a4a1a651edaa8db6b7e3581ce60d0
BLAKE2b-256 a71d00fec52d3f4db1308d324c0328a06d8b016c576ec7e1badb2faa1cc2548d

See more details on using hashes here.

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