This package provides a python wrapper to the api of FactorialHR.
The package currently supports the api version v2026-04-01. The openapi schema can be found at https://api.factorialhr.com/oas
I derived some types from the examples given. They might be incorrect. If you encounter any problems, please create an issue and/or contribute a fix.
Disclaimer
I am not affiliated, associated, authorized, endorsed by, or in any way officially connected with EVERYDAY SOFTWARE, S.L. or FactorialHR, or any of its subsidiaries or its affiliates. The official factorialhr.com website can be found at https://factorialhr.com/
Usage
Get all employees:
import factorialhr
authorizer = factorialhr.ApiKeyAuth('<api_key>') # checkout other authorization methods
async with factorialhr.ApiClient(auth=authorizer) as api:
all_employees = await factorialhr.EmployeesEndpoint(api).all() # fetches all employees. on big companies you might want to increase the timeout by using timeout=...
Get a dictionary with team id as key and a list of member as value:
import asyncio
import factorialhr
authorizer = factorialhr.AccessTokenAuth('<access_token>') # checkout other authorization methods
async with factorialhr.ApiClient(auth=authorizer) as api:
employees_endpoint = factorialhr.EmployeesEndpoint(api)
teams_endpoint = factorialhr.TeamsEndpoint(api)
all_employees, all_teams = await asyncio.gather(employees_endpoint.all(), teams_endpoint.all()) # remember to increase the timeout if you have a lot of employees or teams
employees_by_team_id = {team.id: [employee for employee in all_employees.data() if employee.id in team.employee_ids] for team in all_teams.data()}
Contribute
Feel free to contribute! Please fork this repository, install the development dependencies with uv sync --dev and create pull request.
Metadata
Release files for factorialhr 7.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| factorialhr-7.0.0.tar.gz | 88.8 kB | Without provenance | Details for factorialhr-7.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| factorialhr-7.0.0-py3-none-any.whl | Python 3 | none | any | Details for factorialhr-7.0.0-py3-none-any.whl |
Total release size: 211.6 kB
Release files / factorialhr-7.0.0.tar.gz
| Download URL | factorialhr-7.0.0.tar.gz |
|---|---|
| Size | 88.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6a44a7989485defb38892736d4c2fc178de4664e3c822c8f4e6aa13afb346e4
|
|
BLAKE2b-256 checksum How to use checksums |
3bd4ae2bcf9f5859f86f5fef6787c98cc4d42d0e38256c3aac3f0775cc1696ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / factorialhr-7.0.0-py3-none-any.whl
| Download URL | factorialhr-7.0.0-py3-none-any.whl |
|---|---|
| Size | 122.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b2d3b63ba945a8b3709f9d1ffadf2665e741b0e182ff301f2bd724a6543cf95
|
|
BLAKE2b-256 checksum How to use checksums |
ae8f236b7edad8d0717ad9d9bbbbac6b9a5e0e3c9007e9f3fc0b96d934b675ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for factorialhr 7.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.