semvec/pypi-packages huggingface dataset:
flexhook 0.2.5
a tiny and flexible hook framework
License: MIT
Requires Python: >=3.8,<4.0

# FlexHook

A flex and flexible hook framework.

[![python=^3.8](https://img.shields.io/pypi/pyversions/flexhook?logo=python&logoColor=white)][repo]
[![](https://img.shields.io/pypi/v/flexhook?logo=python)][pypi]
[![document](https://img.shields.io/badge/document-sphinx-green?logo=readthedocs)][doc]

## Features

- Class-level and object-level hook defination and override
- Full typing support
- Little dependencies (only `typing_extensions` for backwards typing compatibility)

## Usage

Goto our [documents][doc] for document and examples.

<!--  -->

[repo]: https://github.com/JamzumSum/flexhook
[pypi]: https://pypi.org/project/flexhook
[doc]: https://jamzumsum.github.io/flexhook
[license]: https://github.com/JamzumSum/flexhook/blob/release/LICENSE
statuscake-py 1.1.0b1
StatusCake API
License: MIT
Requires Python: >=3.6
Keywords: python,sdk,statuscake

statuscake-py |build|
=====================

**NOTE**: This library is in alpha and not production ready. Whilst it can be
used we will not offer support until it is generally available.

The Python implementation of the `StatusCake API
<https://www.statuscake.com/api/v1>`_ client. Documentation for this library
can be found `here <https://www.statuscake.com/api/v1>`_.

Prerequisites
-------------

You will need the following things properly installed on your computer.

* `Python <https://www.python.org/>`_: any one of the **three latest major**
  `releases <https://www.python.org/download/releases/3.0/>`_

Installation
------------

PyPi
----

Using `PyPi <https://pypi.org/project/statuscake-py/>`_, add the following
to ``requirement.txt``:

.. code:: python

   statuscake_py

And then execute:

.. code:: bash

    $ pip install -r requirements.txt

Or install it yourself:

.. code:: bash

    $ pip install statuscake_py

GitHub
------

Installing the latest version from Github:

.. code:: bash

    $ git clone https://github.com/StatusCakeDev/statuscake-py
    $ cd statuscake-py
    $ python setup.py install

Usage
-----

Import the module from any Python file, instantiate an API client and execute a
request:

.. code:: python

   from statuscake import ApiClient
   from statuscake.apis import (
       UptimeApi,
   )

   client = ApiClient(
      header_name='Authorization',
      header_value='Bearer %s' % api_token,
   )

   service = UptimeApi(api_client=client)
   service.list_uptime_tests()

License
-------

This project is licensed under the `MIT License <LICENSE.txt>`_.

.. |build| image:: https://github.com/StatusCakeDev/statuscake-py/workflows/test/badge.svg
remove-old-files 1.0.2
Simple utility to clear old files from specified folder
License: MIT
Requires Python: >=3.5

# Remove old files

`remove-old-files` is simple utility to clear folder for example with daily database dumps and leave only 3 newest.

```bash
remove-old-files --help
```
```
usage: remove-old-files [-h] -x REMOVE_OLDER_THAN [-o] [-m FILE_MASK] [-d] folder

Removing files from folder which have modify file date older than X days.

positional arguments:
  folder                Directory where are files to be removed located.

optional arguments:
  -h, --help            show this help message and exit
  -x REMOVE_OLDER_THAN, --older-than REMOVE_OLDER_THAN
                        Remove files older than X (s)econds/(m)inutes/(h)ours/(D)ays. Example: 3D for 3 days.
  -o, --only-if-newer   Remevove older files than X smhD only if there are any newer files found.
  -m FILE_MASK, --file-mask FILE_MASK
                        Regexp matching filenames for removing. Example: ".*-db-dump-.*"
  -d, --dry-run         Dry run, withouth removing files.

```

Example how to leave only 3 days old dumps
```bash
remove-old-files -x 3D -o /dumps
```