Skip to main content

Python wrapper for the Bullhorn REST API

Project description

bullhorn

bullhorn is an unofficial REST API wrapper for the Bullhorn CRM, implemented in Python.

Features

  • Seamless interaction with the Bullhorn REST API.
  • Simplified access to candidates, jobs, placements and other entity types.
  • Error handling, including retries, and proper API response validation.

Installation

You can install bullhorn using pip:

pip install bullhorn

Getting Started

bullhorn requires you to have a session token and REST URL from Bullhorn.

Authentication from earlier in the pipeline will be added in a later release.

import os

from bullhorn.client import BullhornClient

# Get credentials
session_token = os.environ.get("BULLHORN_SESSION_TOKEN")
rest_url = os.environ.get("BULLHORN_REST_URL")

# Initialise Bullhorn client with credentials
bc = BullhornClient(
    token=session_token,
    rest_url=rest_url,
)

# Get list of candidates
candidates = bc.get_candidates(
    query="dateLastModified:{2023/01/01 TO *}",
    fields="id,firstName,lastName",
)
print("Success: %r" % (candidates))

Contribution

Contributions to bullhorn are welcome! If you encounter any issues or have suggestions for improvements, please feel free to create an issue or submit a pull request on the GitHub repository at https://github.com/recruithub/bullhorn.

License

bullhorn is released under the MIT License. See LICENSE for more information.

Disclaimer

This package is not officially affiliated with or endorsed by Bullhorn. Use it at your own risk, and make sure to comply with the Bullhorn API usage terms and conditions.

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

bullhorn-0.0.12.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

bullhorn-0.0.12-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file bullhorn-0.0.12.tar.gz.

File metadata

  • Download URL: bullhorn-0.0.12.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for bullhorn-0.0.12.tar.gz
Algorithm Hash digest
SHA256 bbd780c77fcd8b478848510efeb8d081369e1364cfb786e8e20eb7b010ee7438
MD5 069e0e74d43b38f027ae6926800cf744
BLAKE2b-256 4c851db749fcbf227c6ea2931cacc97e0580ecc429158ff7ac39b65d342fe359

See more details on using hashes here.

File details

Details for the file bullhorn-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: bullhorn-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for bullhorn-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 0056d232fe5253a2cc6f197b86ad50c8632d1dcb28708db508efae351afe86e3
MD5 1c06ec84500bd7f97870a69ea0a7896a
BLAKE2b-256 0a7ada3e1421ca9c3b9679a4dfa6c3d10c6713babbc131a36a0ae3ed2bb54e76

See more details on using hashes here.

Supported by

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