Skip to main content

| lune - Calcul des dates de phase lunaire |

Vous pouvez l’installer avec pip:

pip install lune

Utilisation :

>>> import lune
>>> lune.calcul_phase(year, month, day)
>>> lune.lunar_phase(year, month, day)

Exemples d’usage

>>> import lune
>>> lune.calcul_phase(1969, 5, 24)

([2440357.8560705725, 2440366.010817295, 2440373.0585508235, 2440379.6528647034], [‘1969/05/16’, ‘1969/05/24’, ‘1969/05/31’, ‘1969/06/07’])

>>> import lune
>>> lune.lunar_phase(1969, 5, 24)

(‘8.png’, ‘Premier quartier’)

python phase.py

The date display is in the form YYYY/MM/DD

Example with the date May 24, 1969

Date input = 1969/5/24

Date of the new moon = 1969/05/16

Date of the first quarter = 1969/05/24

Date of the full moon = 1969/05/31

Date of the last quarter = 1969/06/07

(‘8.png’, ‘Premier quartier’)

Example with today’s date

Date input = 2020/6/17

Date of the new moon = 2020/06/21

Date of the first quarter = 2020/06/28

Date of the full moon = 2020/07/05

Date of the last quarter = 2020/07/12

(‘26.png’, ‘’)

Ce code est sous licence WTFPL.

Metadata

Release files for lune 1.6.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lune 1.6.4
File Size Uploaded Provenance Actions
lune-1.6.4.tar.gz 367.0 kB Without provenance Details for lune-1.6.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for lune 1.6.4
File Interpreter ABI Platform Actions
lune-1.6.4-py3.7.egg Legacy Egg format - - Details for lune-1.6.4-py3.7.egg
lune-1.6.4-py3-none-any.whl Python 3 none any Details for lune-1.6.4-py3-none-any.whl

Total release size: 1.2 MB

Release files / lune-1.6.4.tar.gz

Download URL lune-1.6.4.tar.gz
Size 367.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b88bbef74ca19105b96285bbee74686f9390dc88d9fb5458c5063d7d4caf9137
BLAKE2b-256 checksum
How to use checksums
122062d1422601bc923ef6e408e7ab53fd0b9881c4a37ef35ffd2247723a7d45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

Release files / lune-1.6.4-py3.7.egg

Download URL lune-1.6.4-py3.7.egg
Size 405.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
538630a861c08e97983f519fe42ddc5f25a7cd960e9a7e350a4d08a9cec056bf
BLAKE2b-256 checksum
How to use checksums
d19903c76ace1fdd37f9ea0525039692f9134aac969eca7093ee925c778c9237
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

Release files / lune-1.6.4-py3-none-any.whl

Download URL lune-1.6.4-py3-none-any.whl
Size 401.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4db36e8688225403ba9b6fd436b5eebcb2b1fb07508631873cf20ffc96713ff4
BLAKE2b-256 checksum
How to use checksums
28faa93b95454e9fb784b23eeec61c28cfabdebc2629320966b8fc7b1ade28b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

Security for lune 1.6.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.6.4 This release

3 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page