A collection of constant numbers.
Project description
ApolloRoboto.Constants
This is a utility library containing a collection of constant numbers making them easy to access and explore. This repository aims at generating source codes to multiple languages and publish them.
It's a learning project, my main motivation was to explore the chalenges of code generation and publishing them to multiple code repotitory.
Currently Supported Language:
- C# - Nuget
C# Example Usage:
using System;
using static ApolloRoboto.Constants.Math;
public class Program
{
public void Main(string[] args)
{
Console.WriteLine(PI * GOLDEN_RATIO)
}
}
Contributing
Workflows are configured to regenerate and publish code at each changes.
All constant numbers are declared in the constants.yaml
file.
To generate the code locally, use the generate.py
script
python ./generate.py
If you make a pull request, please increment the version number in meta.yaml
by 0.0.1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file arconstants-0.2.1.tar.gz
.
File metadata
- Download URL: arconstants-0.2.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92244d7c71bf4d35c73a35792e25b55cf1f9882751ed33b30b8d5e23a9af6048 |
|
MD5 | b33ab5c37ec96eeb0fd9f2b2a9ace917 |
|
BLAKE2b-256 | 8162f7cfdbbaa212ab37e2beb87637e95026e3bc2db03338c279b80d1500b2c2 |
File details
Details for the file arconstants-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: arconstants-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 49.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81939ccae2a42f3f09d00b74ed7b2ed1c3c8ba39c1306e060be508a24a9a8ae8 |
|
MD5 | 1a19f8ee1dd29764632a59e81c9b1b41 |
|
BLAKE2b-256 | 308e105557ea4040308ee93b93d6c0dec43227d204477ad31d5ce8e9fb2d54d7 |