semvec/pypi-packages huggingface dataset:
hatch-calver 2024.9.26
Hatch plugin for CalVer versioning
Requires Python: >=3.7

# hatch-calver

A plugin for [hatch][hatch] to support [calendar versioning][calver].

## Setup

Add `hatch-calver` as a build dependency to your project.

```toml
[build-system]
requires = [
    "hatchling",
    "hatch-calver",
]
build-backend = "hatchling.build"
```

Then, set `tool.hatch.version.scheme` to `"calver"`.

```toml
[tool.hatch.version]
scheme = "calver"
```

### Configuring the CalVer scheme

You can optionally set `calver-scheme` to a dot-separated string
of parts specified in the [calver scheme][calver_scheme] specification.
It defaults to `YYYY.MM.DD`.

```toml
[tool.hatch.version]
scheme = "calver"
calver-scheme = "YY.MM"
```

Note that your project's versions should conform to the scheme you specify;
otherwise, determining where to put e.g. patch versions will be quite ambiguous.

## Usage

You can use Hatch's [standard versioning][hatch_version_updating] commands.

To update your project's version to the current date, run `hatch version release`
(or `hatch version date`).

As with the regular versioning scheme, you can chain multiple segment updates.
The date part of the version will _not_ be updated unless you explicitly specify it.

The CalVer scheme specified for your project specifies which segment of the
PEP 440 "release" segments are automatically determined; for instance, for a `YYYY.MM.DD`
scheme, the 4th field of the release segment will be considered the `patch` field.

In other words, if you specify `YYYY.MM.DD` as your scheme, and it's the 16th of September 2024:

| Original version | Command                 | New version     |
| ---------------- | ----------------------- | --------------- |
| `2024.07.22`     | `hatch version release` | `2024.09.16`    |
| `2024.07.22.1`   | `hatch version release` | `2024.09.16`    |
| `2024.07.22`     | `hatch version date,a`  | `2024.09.16a0`  |
| `2021.01.01`     | `hatch version rc`      | `2021.01.01rc0` |
| `2024.7.22`      | `hatch version patch`   | `2024.07.22.1`  |

## Version history

### 2024.9.17

- Initial release

### 2024.9.26

- Changed the `date`/`release` bump instructions to reset any non-date segments.
  In other words, a `release` bump from `2024.07.22.1` no longer results in `2024.09.16.1`.

[hatch]: https://hatch.pypa.io/
[hatch_version_updating]: https://hatch.pypa.io/latest/version/#updating
[hatch_version_segments]: https://hatch.pypa.io/latest/version/#supported-segments
[calver]: https://calver.org/
[calver_scheme]: https://calver.org/#scheme
spoofagent 1.0.1
A simple library to generate fake user agents.
Requires Python: >=3.6

# User Agent Generator

A simple library to generate fake user agents for various platforms and browsers. This library can be useful for web scraping, testing, and simulating user behavior in web applications.

## Features

- Generates random user agents for multiple platforms:
  - Chrome
  - Firefox
  - Safari
  - Microsoft Edge
  - Internet Explorer
  - Android
  - iOS
  - Linux
  - Mac
  - Windows
- Customizable version and build numbers
- Easy to use and integrate into your projects

## Installation

You can install the package using pip:

```bash
pip install useragent-generator
```

## Usage
Here’s how to use the UserAgentGenerator class in your project:

## Example
```py
from spoofagent import UserAgentGenerator

# Create an instance of the generator
generator = UserAgentGenerator()

# Generate user agents for different platforms
chrome_ua = generator.generate_user_agent('chrome')
firefox_ua = generator.generate_user_agent('firefox')
safari_ua = generator.generate_user_agent('safari')
edge_ua = generator.generate_user_agent('edge')
ie_ua = generator.generate_user_agent('ie')
android_ua = generator.generate_user_agent('android')
ios_ua = generator.generate_user_agent('ios')
linux_ua = generator.generate_user_agent('linux')
mac_ua = generator.generate_user_agent('mac')
windows_ua = generator.generate_user_agent('windows')

# Print the generated user agents
print("Chrome User Agent:", chrome_ua)
print("Firefox User Agent:", firefox_ua)
print("Safari User Agent:", safari_ua)
print("Edge User Agent:", edge_ua)
print("Internet Explorer User Agent:", ie_ua)
print("Android User Agent:", android_ua)
print("iOS User Agent:", ios_ua)
print("Linux User Agent:", linux_ua)
print("Mac User Agent:", mac_ua)
print("Windows User Agent:", windows_ua)
```

## Customizing User Agents
You can customize the version and build numbers when generating user agents:
```py
custom_ua = generator.generate_user_agent('chrome', version='89', build='1234')
print("Custom Chrome User Agent:", custom_ua)
```

## Platform Options
The following platforms are supported:

- chrome
- firefox
- safari
- edge
- ie
- android
- ios
- linux
- mac
- windows