Skip to main content

Robin Powered API Bot - RoBot

Many companies are nowadays using the Robin platform to connect employees with desks, rooms and each other.

Robin Powered API Bot (RoBot) is a package that tries to simplify the life of employees that are not allowed to have permanent desks anymore. All that is necessary are email and seatid.

Getting Started

Assuming that you have a supported version of Python installed, you can first set up your environment with:

$ python -m venv .venv
...
$ . .venv/bin/activate

Then you can install robin-powered-bot

python -m pip install robin-powered-bot

Using RoBot

In order to use the package an API key has to be provided via the env variable ROBIN_AUTH_TOKEN.

User Info

UserInfo is used to load and store all info about the user, it needs the following parameters:

  • email: employee email;
  • stime: start time of the working day as it would be specified in Robin;
  • duration: how long is your working day, usually 8 hours;
  • sid: seat id, identifier of the seat that you want to book.
from src.user import UserInfo
users_info = [UserInfo("dbarone@company.com", 11, 8, 10)]

Notes: Seat Id has still to be provided, haven't found yet a more user friendly way to do it.

Reserve

Following an example to book a desk for 5 days, from the 15th to the 20th.

from datetime import datetime
from src.robin import Robin
from src.user import UserInfo

users_info = [UserInfo("dbarone@company.com", 11, 8, 10)]
r = Robin(users_info)
results = r.reserve(datetime(2022, 11, 15), datetime(2022, 11, 20))
print(results)

Notes:

The reserve method will do the following:

  • Reserve all working days;
  • Skip all weekends, it doesn't deal with holidays;
  • Companies might enforce a limit on how much in advance a desk can be booked, the reserve method will just stop.

Check in

Following an example of check in.

from datetime import datetime
from src.robin import Robin
from src.user import UserInfo

users_info = [UserInfo("dbarone@company.com", 11, 8, 10)]
r = Robin(users_info)
results = r.check_in(datetime(2022, 11, 24))
print(results)

Release files for robin-powered-bot 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for robin-powered-bot 0.0.8
File Size Uploaded
robin-powered-bot-0.0.8.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for robin-powered-bot 0.0.8
File Interpreter ABI Platform
robin_powered_bot-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 25.4 kB

Release files / robin-powered-bot-0.0.8.tar.gz

Download URL robin-powered-bot-0.0.8.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7eba1c27baa581f0d9bd3b20f33896a660aed4c0e1e22a4b5931115cc6cf56ff
BLAKE2b-256 checksum
How to use checksums
b9374622c0bf241c134a2e831645ee8f193dec8e8adc2abd08c2ae6472509298
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / robin_powered_bot-0.0.8-py3-none-any.whl

Download URL robin_powered_bot-0.0.8-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5621868cf9da47a9485b440bc5709de7addd6e72fe69b1d8f4faf76eccddd054
BLAKE2b-256 checksum
How to use checksums
e987ac3c2c41497096846204505467ab1f71678264284475ccfd80e63c434451
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page