Crates.io | astrology |
lib.rs | astrology |
version | 3.0.3 |
source | src |
created_at | 2020-01-20 08:45:14.524625 |
updated_at | 2022-01-16 16:41:22.903215 |
description | Astrology lib connected to the C lib Swiss ephemeris |
homepage | |
repository | https://github.com/stephaneworkspace/astrology |
max_upload_size | |
id | 200389 |
size | 1,390,403 |
Rust library by Stéphane Bressani
Using swissephem c library by Astrodienst AG by Dieter Koch and Alois Treindl (https://www.astro.com/ftp/swisseph/)
2.1) Simple natal chart
cargo run --example svg -- -1.9 45.0 +2 -d 01.01.2000 -t 23:23 --path_export ~/my_natal_chart.svg --path_ephem ~/Code/Binary/ephem_files
cargo run --example svg -- --help
USAGE:
svg [OPTIONS] <LAT_CHART> <LNG_CHART> <TIME_ZONE_CHART> -d <DATE_CHART> --path_export <PATH_AND_FILE_CHART> --path_ephem <PATH_SWISS_EPHEM_FILES> -s <SIZE_SQUARE_IN_PX> -t <TIME_CHART>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-a <ASPECT_CODE>
Code of aspect :
All aspects = 0
All majors aspects = 1
Conjunction = 2
Opposition = 3
Trine = 4
Square = 5
Sextile = 6
All minors aspect = 7
Inconjunction = 8
Sesquisquare = 9
Semisquare = 10
Semisextile = 11
No aspects = 12 [default: 0]
-d <DATE_CHART> Date of birth in format: dd.mm.yyyy [default: 22.8.2020]
--path_export <PATH_AND_FILE_CHART>
Path for svg draw on the disk [default: ./natal_chart.svg]
--path_ephem <PATH_SWISS_EPHEM_FILES> Path of swiss ephem files
-s <SIZE_SQUARE_IN_PX> Size of the square [default: 1000]
-t <TIME_CHART> Time of birth in format: hh:mm:ss or hh:mm [default: 0:0]
ARGS:
<LAT_CHART> Latitude of birth in float format: 99.99
<LNG_CHART> Longitude of birth in float format: 99.99
<TIME_ZONE_CHART> Time zone of birth in numeric format
2.2) Svg Natal + Transit chart
cargo run --example svg_transit -- --natal_date 01.01.1900 --transit_date 01.08.2020 --natal_lat 46.0222 --transit_lat 46.0222 --natal_lng 6.14569 --transit_lng 6.14569 --path_export ~/my_transit_chart.svg --path_ephem ~/Code/Binary/ephem_files --natal_time 3:0 --transit_time 14:20 --natal_time_zone 2 --transit_time_zone 2
cargo run --example svg_transit -- --help
USAGE:
svg_transit [OPTIONS] --natal_date <DATE_NATAL_CHART> --transit_date <DATE_NATAL_CHART> --natal_lat <LAT_NATAL_CHART> --transit_lat <LAT_TRANSIT_CHART> --natal_lng <LNG_NATAL_CHART> --transit_lng <LNG_TRANSIT_CHART> --path_export <PATH_AND_FILE_CHART> --path_ephem <PATH_SWISS_EPHEM_FILES> -s <SIZE_SQUARE_IN_PX> --natal_time <TIME_NATAL_CHART> --transit_time <TIME_TRANSIT_CHART> --natal_time_zone <TIME_ZONE_NATAL_CHART> --transit_time_zone <TIME_ZONE_TRANSIT_CHART>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-a <ASPECT_CODE>
Code of aspect :
All aspects = 0
All majors aspects = 1
Conjunction = 2
Opposition = 3
Trine = 4
Square = 5
Sextile = 6
All minors aspect = 7
Inconjunction = 8
Sesquisquare = 9
Semisquare = 10
Semisextile = 11
No aspects = 12 [default: 0]
--natal_date <DATE_NATAL_CHART> Date of birth in format: dd.mm.yyyy
--transit_date <DATE_NATAL_CHART> Date of transit in format: dd.mm.yyyy
--natal_lat <LAT_NATAL_CHART> Latitude of birth in float format: 99.99
--transit_lat <LAT_TRANSIT_CHART> Latitude of transit in float format: 99.99
--natal_lng <LNG_NATAL_CHART> Longitude of birth in float format: 99.99
--transit_lng <LNG_TRANSIT_CHART> Longitude of transit in float format: 99.99
--path_export <PATH_AND_FILE_CHART>
Path for svg draw on the disk [default: ./transit_chart.svg]
--path_ephem <PATH_SWISS_EPHEM_FILES> Path of swiss ephem files
-s <SIZE_SQUARE_IN_PX> Size of the square [default: 1000]
--natal_time <TIME_NATAL_CHART> Time of birth in format: hh:mm:ss or hh:mm
--transit_time <TIME_TRANSIT_CHART> Time of transit in format: hh:mm:ss or hh:mm
--natal_time_zone <TIME_ZONE_NATAL_CHART> Time zone of birth in numeric format
--transit_time_zone <TIME_ZONE_TRANSIT_CHART> Time zone of transit in numeric format
3.0.3
3.0.0
1.0.2
1.0.1
1.0.0
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.76
0.1.75
0.1.74
0.1.73
0.1.72
0.1.71
0.1.70
0.1.69
0.1.68
0.1.66
0.1.65
0.1.64
0.1.63
0.1.62
0.1.61
0.1.60
0.1.59
0.1.58
0.1.57
0.1.56
0.1.55
0.1.54
0.1.53
0.1.52
0.1.51
0.1.50
0.1.49
0.1.48
0.1.47
0.1.46
0.1.45
0.1.44
0.1.43
0.1.42
0.1.41
0.1.40
0.1.39
0.1.38
0.1.37
0.1.36
0.1.35
0.1.34
0.1.33
0.1.32
0.1.31
0.1.30
0.1.29
0.1.28
0.1.27
0.1.26
0.1.25
0.1.24
0.1.23
0.1.22
0.1.21
0.1.20
0.1.19
0.1.18
0.1.17
0.1.16
0.1.15
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0