semvec/pypi-packages huggingface dataset:
commit-message-validator 2.2.0
Validate the format of a commit message to Wikimedia Gerrit standards
Requires Python: >=3.6
Keywords: gerrit, git, lint, wikimedia

########################
Commit Message Validator
########################

``commit-message-validator`` is a tool that validates git commit messages to
the `Wikimedia commit message guidelines`_.

Please see <https://www.mediawiki.org/wiki/commit-message-validator> for more
details.

Usage
=====

Use locally as a Pre-commit plugin
----------------------------------

``commit-message-validator`` can be used as a plugin for the `pre-commit`_ git
hooks system. Add the following to your ``.pre-commit-config.yaml``:

.. code-block:: yaml

   -  repo: https://gitlab.wikimedia.org/repos/ci-tools/commit-message-validator
      rev: # Fill in a tag / sha here (like v2.0.0)
      hooks:
      -  id: commit-message-validator

Then install the pre-commit hook:

.. code-block:: bash

   pre-commit install --hook-type commit-msg

Use with gitlab.wikimedia.org's CI/CD
-------------------------------------

A GitLab CI/CD template is provided in this repo for linting of commit
messages in a merge request. Add the following to your ``.gitlab-ci.yml``:

.. code-block:: yaml

   include:
     - project: repos/ci-tools/commit-message-validator
       file: /templates/lint-merge-request.yml

Contributing
============

See CONTRIBUTING.rst_ for guidelines on contributing to
``commit-message-validator``.

Bug reports
===========

Please reports bugs and feature requests at
https://phabricator.wikimedia.org/tag/commit-message-validator/.

License
=======

Licensed under the `GPL-2.0-or-later`_ license. See COPYING_ for the full
license.

.. _Wikimedia commit message guidelines: https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines
.. _pre-commit: https://pre-commit.com/
.. _CONTRIBUTING.rst: https://gitlab.wikimedia.org/repos/ci-tools/commit-message-validator/-/blob/main/CONTRIBUTING.rst
.. _GPL-2.0-or-later: https://www.gnu.org/licenses/gpl-2.0.html
.. _COPYING: https://gitlab.wikimedia.org/repos/ci-tools/commit-message-validator/-/blob/main/COPYING
panchanga-cli 0.1.2
CLI tool for Vedic calendar calculations
Requires Python: >=3.10
Keywords: calendar, cli, panchanga, vedic

# Panchanga CLI

Command-line interface for Vedic calendar (Panchanga) calculations.

## Installation

```bash
pip install panchanga-cli
```

This will automatically install the `panchanga` library.

## Usage

```bash
# Detailed pancanga for a date
panchanga verbose "2025 3 14"

# List 10 consecutive days
panchanga list "2024 1 1"

# Convert Vedic date to Gregorian
panchanga try 1946 0 1 --paksa sukla --year-system saka

# Custom location
panchanga --place mumbai verbose "2025 3 14"
panchanga --latitude 28.6 --longitude 77.2 verbose "2025 3 14"
```

## Commands

### `panchanga verbose [DATE]`

Display detailed panchanga information for a specific date.

**Example:**
```bash
$ panchanga verbose "2025 3 14"
```

### `panchanga list [DATE] [DAYS]`

List panchanga information for consecutive days.

**Example:**
```bash
$ panchanga list "2024 1 1" 10  # Show 10 days starting from 2024-01-01
```

### `panchanga try YEAR MONTH DAY`

Convert an Vedic calendar date to Gregorian.

**Options:**
- `--paksa`: Specify paksha (sukla/krsna)
- `--year-system`: Specify year system (saka/vikrama/kali)

**Example:**
```bash
$ panchanga try 1946 0 1 --paksa sukla --year-system saka
```

### `panchanga horoscope [DATE] [TIME]`

Calculate horoscope/birth chart for a specific date and time.

**Example:**
```bash
$ panchanga horoscope "1990 5 15" "14:30"
```

## Location Options

You can specify location using predefined places or custom coordinates:

**Predefined Places:**
```bash
panchanga --place mumbai verbose "2025 3 14"
panchanga --place delhi verbose "2025 3 14"
panchanga --place bangalore verbose "2025 3 14"
```

**Custom Coordinates:**
```bash
panchanga --latitude 28.6 --longitude 77.2 verbose "2025 3 14"
```

## Date Format

Dates should be provided as "YEAR MONTH DAY" (space-separated):
- `"2025 3 14"` for March 14, 2025
- `"2024 1 1"` for January 1, 2024

## Features

- Calculate tithi (lunar day)
- Calculate naksatra (lunar mansion)
- Calculate yoga and karana
- Calculate sunrise time
- Convert between different Vedic calendar eras (Kali, Saka, Vikrama)
- Find samkranti (sun transit) dates
- Generate horoscopes/birth charts
- Support for custom locations

## Library Usage

This CLI tool uses the `panchanga` library. You can use the library directly in your Python code:

```python
import panchanga

# Convert date
jd = panchanga.modern_date_to_julian_day(2025, 3, 14)
ahargana = panchanga.julian_day_to_ahargana(jd)

# Get calendar information
kali_year = panchanga.ahargana_to_kali(ahargana)
saka_year = panchanga.kali_to_saka(kali_year)

# Calculate astronomical positions
tslong = panchanga.get_true_solar_longitude(ahargana)
tllong = panchanga.get_true_lunar_longitude(ahargana)
```

See the [panchanga library documentation](https://git.sr.ht/~ayys/panchanga) for more details.

## Credits

Based on the Perl implementation by M. YANO and M. FUSHIMI (v3.14, 2014).
Python port by Ayush Jha.
panchanga 0.1.2
Traditional Vedic calendar calculations based on Suryasiddhanta
Requires Python: >=3.10
Keywords: astronomy, calendar, hindu, panchanga, suryasiddhanta, vedic

# Panchanga - Vedic Calendar Library

Pure Python library for traditional Vedic calendar (Panchanga) calculations based on Suryasiddhanta (ca. AD 1000).

## Installation

```bash
pip install panchanga
```

## Quick Example

```python
import panchanga

# Convert Gregorian to Julian Day and Ahargana
jd = panchanga.modern_date_to_julian_day(2025, 3, 14)
ahargana = panchanga.julian_day_to_ahargana(jd)

# Get calendar information
kali_year = panchanga.ahargana_to_kali(ahargana)
saka_year = panchanga.kali_to_saka(kali_year)
vikrama_year = panchanga.saka_to_vikrama(saka_year)

# Calculate astronomical positions
tslong = panchanga.get_true_solar_longitude(ahargana)
tllong = panchanga.get_true_lunar_longitude(ahargana)

# Get lunar day (tithi)
tithi = panchanga.get_tithi(tllong, tslong)
tithi_day, ftithi = panchanga.get_tithi_set(tithi)

# Get naksatra
naksatra = panchanga.get_naksatra_name(tllong)
```

## Features

- Date conversions (Gregorian ↔ Julian Day ↔ Ahargana)
- Vedic calendar era conversions (Kali, Saka, Vikrama)
- Lunar calculations (tithi, naksatra, yoga, karana)
- Solar calculations (saura masa, samkranti)
- Astronomical calculations (sun/moon longitudes)
- Sunrise time calculations
- Ayanamsa calculations
- Horoscope/birth chart calculations

## Documentation

See [API documentation](https://git.sr.ht/~ayys/panchanga) for detailed usage.

## Credits

Based on the Perl implementation by M. YANO and M. FUSHIMI (v3.14, 2014).
Python port by Ayush Jha.