semvec/pypi-packages huggingface dataset:
tzupdate-active 3.1.0
Set the system timezone based on IP geolocation.
License: MIT
Requires Python: >=3.8
Keywords: timezone, localtime, geolocation

# tzupdate_active

This is a fork of the OG tzupdate repo.

[![Tests](https://img.shields.io/github/actions/workflow/status/cdown/tzupdate_active/ci.yml?branch=master)](https://github.com/cdown/tzupdate_active/actions?query=branch%3Amaster)

tzupdate_active is a fully automated utility to set the system time using geolocation.

## Features

- Small, easy to understand codebase
- Queries multiple geolocation services in parallel and returns the first with
  a successful result
- Protects against directory traversal and invalid results when linking
  /etc/localtime

## Installation

    cargo install tzupdate_active

## Usage

    # tzupdate_active
    Set system timezone to Europe/London.

Internally, this geolocates you, gets the timezone for that geolocation, and
then updates the system's local time zone.

You can see what tzupdate_active would do without actually doing it by passing `-p`,
and specify an alternative IP address by using `-i`. This is not an exhaustive
list of options, see `tzupdate_active --help` for that.
cachedir-tag 0.0.4
Handle CACHEDIR.TAG files, indicating directories that contain cached content
License: MIT
Requires Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7
Keywords: cache, cachedir, cachedirtag

# CACHEDIR.TAG for Python

This library handles [CACHEDIR.TAG](https://bford.info/cachedir/) files.
Allowing any arbitrary directory to be marked as a cache directory.

A CACHEDIR.TAG file indicates a directory that contain cached data, e.g.

- downloads
- previews, and thumbnails
- build artefacts, and other intermediate results

Cached data is useful, but not essential - if necessary it can be regenerated,
or downloaded again. However backup programs, disk cleanup utilities, & other
software can't know if an arbitrary path is cached data, unless it is marked.

A directory (and all directories within it) can be marked as a cache by
writing a regular file named CACHEDIR.TAG, with the first 43 bytes being

```
Signature: 8a477f597d28d172789f06886806bc55
```

After this signature any other text can be included. The specification
suggests lines of text beginning with `#`, encoded as UTF-8. E.g.

```
# This file is a cache directory tag created by (application name).
# For information about cache directory tags, see:
#	http://www.brynosaurus.com/cachedir/
```

This library follows that suggestion.

## Installation

```
$ python -m pip install cachedir-tag
```

## Usage

Create your cache directory, if necessary

```python
>>> import os, cachedir_tag
>>> os.mkdir('/var/cache/yourapp')
```

Tag it, this creates a new CACHEDIR.TAG file

```python
>>> cachedir_tag.tag('/var/cache/yourapp')
```

Check whether the directory is tagged

```python
>>> cachedir_tag.is_tagged('/var/cache/yourapp')
True
```

Check whether a sub-directory (which may not exist yet) is tagged

```python
>>> cachedir_tag.is_tagged('/var/cache/yourapp/somedir')
True
```

## License

MIT

## Alternatives

Operating systems and similar platforms usually have conventions about where
to place cached data. A CACHEDIR.TAG file isn't needed if you follow these
conventions, but it doesn't hurt either.

## More information

- [Cache Directory Tagging Specification](https://bford.info/cachedir/)
  by [Bryan Ford](https://bford.info/)
tzupdate-pv-a 3.1.0
Set the system timezone based on IP geolocation.
License: MIT
Requires Python: >=3.8
Keywords: timezone, localtime, geolocation

# tzupdate | [![Tests](https://img.shields.io/github/actions/workflow/status/cdown/tzupdate/ci.yml?branch=master)](https://github.com/cdown/tzupdate/actions?query=branch%3Amaster)

tzupdate is a fully automated utility to set the system time using geolocation.

## Features

- Small, easy to understand codebase
- Queries multiple geolocation services in parallel and returns the first with
  a successful result
- Protects against directory traversal and invalid results when linking
  /etc/localtime

## Installation

    cargo install tzupdate

## Usage

    # tzupdate
    Set system timezone to Europe/London.

Internally, this geolocates you, gets the timezone for that geolocation, and
then updates the system's local time zone.

You can see what tzupdate would do without actually doing it by passing `-p`,
and specify an alternative IP address by using `-i`. This is not an exhaustive
list of options, see `tzupdate --help` for that.