Metadata-Version: 2.4
Name: accuratum
Version: 0.3.0
Summary: A python library and CLI for creating Accuratum sundial diagrams
Keywords: astronomy,education,solar clock,sundial
Author: Paulo Eduardo de Brito, Marco Aurélio A. Barbosa
Author-email: Paulo Eduardo de Brito <pedebrito@unb.br>, Marco Aurélio A. Barbosa <aureliobarbosa@gmail.com>
License-Expression: MIT
License-File: LICENSE.md
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: Topic :: Education
Requires-Dist: astropy>=7.1.0
Requires-Dist: geopy>=2.4.1
Requires-Dist: numpy>=2.2.6
Requires-Dist: matplotlib>=3.10.3
Requires-Dist: timezonefinder>=8.2.2
Requires-Dist: tzdata>=2024.1
Requires-Dist: astroplan>=0.10.1
Requires-Dist: ipykernel>=6.29.5 ; extra == 'dev'
Requires-Dist: pytest>=8.3.5 ; extra == 'dev'
Requires-Dist: pytest-mock>=3.14 ; extra == 'dev'
Requires-Dist: ruff>=0.11.11 ; extra == 'dev'
Maintainer: Marco Aurélio A. Barbosa
Maintainer-email: Marco Aurélio A. Barbosa <aureliobarbosa@gmail.com>
Requires-Python: >=3.11
Project-URL: Homepage, https://github.com/aureliobarbosa/accuratum
Project-URL: Repository, https://github.com/aureliobarbosa/accuratum
Project-URL: Issues, https://github.com/aureliobarbosa/accuratum/issues
Provides-Extra: dev
Description-Content-Type: text/markdown

<p align="center">
  <img src="https://raw.githubusercontent.com/aureliobarbosa/accuratum/main/accuratum/fig/logo.png" alt="Accuratum logo" width="160">
</p>

<h1 align="center">Accuratum</h1>

<p align="center"><strong>Sundials for any place on Earth</strong></p>

<p align="center">
  🇧🇷 <a href="https://github.com/aureliobarbosa/accuratum/blob/main/README_pt-BR.md">Leia em português</a>
</p>

<p align="center">
  <a href="https://github.com/aureliobarbosa/accuratum/actions/workflows/ci.yml"><img src="https://github.com/aureliobarbosa/accuratum/actions/workflows/ci.yml/badge.svg" alt="Tests (library and website)"></a>
  <a href="https://github.com/aureliobarbosa/accuratum/actions/workflows/deploy.yml"><img src="https://github.com/aureliobarbosa/accuratum/actions/workflows/deploy.yml/badge.svg" alt="Website deploy"></a>
  <a href="https://pypi.org/project/accuratum/"><img src="https://img.shields.io/pypi/v/accuratum" alt="PyPI version"></a>
  <a href="https://github.com/aureliobarbosa/accuratum/blob/main/LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT license"></a>
</p>

**Make your own sundial at [accuratum.web.app](https://accuratum.web.app).**

## What is Accuratum?

For several millennia, sundials were the main way of keeping time in daily
life. They stood in squares and on buildings, and some monuments were built
just to mark the hours. Today they no longer serve a practical purpose, but
they have become something greater: works of art, and tools for teaching
and sharing science and the history of how humanity has kept time.

Accuratum lets anyone, anywhere on Earth, make a sundial for their own
neighborhood, simply and accurately. It draws a **horizontal sundial**: the
lines on which the shadow of a vertical pointer (the *gnomon*) falls,
through the hours of the day and the dates of the year, for (almost) any
place on the globe.

*Accuratum* is Latin for accurate, made with care, meticulous.

## Using the website

The easiest way to make a sundial is the website,
**[accuratum.web.app](https://accuratum.web.app)**. No installation is
needed.

1. **Choose the place.** Search for a city, university or address, or click
   the map.
2. **Personalize it.** Choose the first half-year (the one in progress,
   unless you change it), the title and subtitle, the line colors, and
   your own logo if you like.
3. **Generate.** It takes up to a minute.
4. **Download the PDF.** It has two half-years in a row, one per page,
   each from solstice to solstice, ready to print.

The two short bars in the bottom-left corner of each drawing are as long
as the gnomon is tall. Print the dial at any size you like, then make the
gnomon as tall as one bar.

This is the sundial for Brasília (June → December 2026):

<p align="center">
  <img src="https://raw.githubusercontent.com/aureliobarbosa/accuratum/main/web/accuratum_web/static/gallery/brasilia.png" alt="Accuratum sundial for Brasília" width="720">
</p>

## Installing the program

You can also make sundials on your own computer with the `accuratum`
command. It needs [Python](https://www.python.org/) 3.11 or newer and one
of these tools: [pipx](https://pipx.pypa.io/) or
[uv](https://docs.astral.sh/uv/).

```bash
pipx install accuratum      # with pipx
uv tool install accuratum   # or with uv
```

Then make a sundial by naming a place, or by giving its latitude and
longitude:

```bash
accuratum "belem, brazil"
accuratum --lat-long=-15.78,-47.92
```

Each command creates a folder with the drawing (`accuratum.png`) inside.
To try it once without installing anything, use `uvx accuratum "belem, brazil"`.
For all the options, run `accuratum --help`.

## For developers

Detailed instructions for using Accuratum as a Python library, for the
command line and for development are in
[docs/DEVELOPERS.md](https://github.com/aureliobarbosa/accuratum/blob/main/docs/DEVELOPERS.md).

This project does not accept contributions via pull requests at this
moment. Bug reports and suggestions are welcome as
[issues](https://github.com/aureliobarbosa/accuratum/issues). If you want to
contribute to this project you can contact prof. Marco Barbosa through
LinkedIn or e-mail.

## Authors

- **Paulo Eduardo de Brito**, creator ·
  [Lattes CV](https://busca-cv-lattes.cnpq.br/curriculo/9022648500703356)
- **Marco Aurélio Alves Barbosa**, developer ·
  [Lattes CV](https://busca-cv-lattes.cnpq.br/curriculo/5720622055548812) ·
  [GitHub](https://github.com/aureliobarbosa)

## License

Accuratum is free software under the MIT license. See
[LICENSE.md](https://github.com/aureliobarbosa/accuratum/blob/main/LICENSE.md).
