Skip to main content

Leave Populator

Asks the minimum amount of questions to populate a leave request form.

Installation

Recommended

pip install popleave

Local installation

  1. Install poetry following the official guidelines for your system.

  2. Clone the repository.

  3. Install the dependencies.

poetry install

Usage

First run

Run the program with

popleave

On the first run, you will be asked for your name:

Enter name (press Enter to use Samwise Gamgee): 

and your department:

Enter department (press Enter to use The Shire):

and the current amount of days holiday you have remaining:

Enter remaing_days_leave (press Enter to use 26):

If you ever need to change or correct these details, pass the --init flag when running the script:

popleave --init

and you will be able to update the values accordinly.

Populating a form

When run you will then be prompted for:

  • The start date of your leave.
  • The duration of your leave.
  • The reason for your leave.

If you'd rather, you can use commandline arguments. A full list of commandline arguments can be found by using the --help flag.

usage: popleave    [-h] [-i] [-s START_DATE] [-e END_DATE] [-d DURATION]
                   [-r REASON] [-t]

Populates the leave of absence form with a CLI

options:
  -h, --help            show this help message and exit
  -i, --init            Forces reinitialisation of config file.
  -s START_DATE, --start_date START_DATE
                        Start date in YYYY-MM-DD format.
  -e END_DATE, --end_date END_DATE
                        End date in YYYY-MM-DD format.
  -d DURATION, --duration DURATION
                        Duration in days.
  -r REASON, --reason REASON
                        Reason for leave.
  -t, --toil            Fills out Time Off In Leu instead of annual leave.

All resulting forms will be stored in the current directory in the format INITIALS_ANNUAL_STARTDATE.docx. Thus Samwise Gamgee requesting some leave starting on 1969-12-31 will result in:

SG_ANNUAL_31121969.docx

License

This project is licensed under the GPLv3 license.

Contributing

All contributions welcome. Submit a pull a request or create an issue to start the ball rolling.

Metadata

Release files for popleave 0.1.4

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

Source distribution (sdist)

Source distribution for popleave 0.1.4
File Size Uploaded Provenance Actions
popleave-0.1.4.tar.gz 35.7 kB Without provenance Details for popleave-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for popleave 0.1.4
File Interpreter ABI Platform Actions
popleave-0.1.4-py3-none-any.whl Python 3 none any Details for popleave-0.1.4-py3-none-any.whl

Total release size: 70.4 kB

Release files / popleave-0.1.4.tar.gz

Download URL popleave-0.1.4.tar.gz
Size 35.7 kB
Tags Source
SHA-256 checksum
How to use checksums
81dd7ddca54c8b497380002970ea3be0d3c49e8da3db50bfc9594c4d4a262223
BLAKE2b-256 checksum
How to use checksums
eb3622a5827edb61f61cf10ec8303dfb97479b37e780cda59be4492d8b53b119
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Windows/11

Release files / popleave-0.1.4-py3-none-any.whl

Download URL popleave-0.1.4-py3-none-any.whl
Size 34.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a75c6a28275ba676b6156aa385254f9245e7da2485d2a4ee998af8403fb13dd
BLAKE2b-256 checksum
How to use checksums
80382f7c01393aac081ebf69f74a44a3b48a9658726bc6de68b3cd08602ff4be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Windows/11

Security for popleave 0.1.4

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.

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