Skip to main content

Python package for the api of FactorialHR

Project description

FactorialHR api python wrapper

This package provides a python wrapper to the api of FactorialHR.

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/

Unfortunately, the documentation is not detailed and updated, such that many parameters have been reverse engineered and may be wrong or change at any time. If you encounter some problems, open an issue or contribute the fix yourself.

Usage

Get all employees

from factorialhr import endpoints

async with endpoints.NetworkHandler as api:
    endpoint = endpoints.EmployeesEndpoint(api)
    all_employees = await endpoint.all()

Get a dictionary with team id as key and a list of member as value

from factorialhr import endpoints
from factorialhr import models

async with endpoints.NetworkHandler('<api_key>') as api:
    e_endpoint = endpoints.EmployeesEndpoint(api)
    t_endpoint = endpoints.TeamsEndpoint(api)
    all_employees = await e_endpoint.all()
    all_teams = await t_endpoint.all()
    employees_by_team_id: dict[int, models.Employee] = {team.id: [e for e in all_employees
                                                                  if e.id in team.employee_ids] for team in all_teams}

TODO

Contribute

Feel free to contribute! Please fork this repository, install the development dependencies with pip install -e ".[dev]" and create pull request.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

factorialhr-2.0.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file factorialhr-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: factorialhr-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for factorialhr-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0cf492a17f7744225aa200035500bc4299602a6403c3b56e9941cb3433ab48d
MD5 2c444ae408cc9688313bf1f59a7d0290
BLAKE2b-256 a1118394c585c843f86c26c1580c3b17bbf5ba34fddbfb28e22fd2a204b07302

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