Skip to main content

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# Example Usage:

using System;
using static ApolloRoboto.Constants.Math;

public class Program
{
	public void Main(string[] args)
	{
		Console.WriteLine(PI * GOLDEN_RATIO)
	}
}

Python example usage:

from ARConstants.Math import *

print(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

Release files for arconstants 0.3.0

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

Source distribution (sdist)

Source distribution for arconstants 0.3.0
File Size Uploaded
arconstants-0.3.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arconstants 0.3.0
File Interpreter ABI Platform
arconstants-0.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 58.3 kB

Release files / arconstants-0.3.0.tar.gz

Download URL arconstants-0.3.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dfd5ce9c3e7a96dfdde75afb506559033fbba45bbc0a8cf59b1f1ee6143c0329
BLAKE2b-256 checksum
How to use checksums
de8079a021e1d921f6ccd0a2513af236a8da463f83dcb61aed91ccf143861023
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / arconstants-0.3.0-py2.py3-none-any.whl

Download URL arconstants-0.3.0-py2.py3-none-any.whl
Size 50.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
31ac164e57a29d76414191533708d17b14220e98245d9170bfa68feb19e15853
BLAKE2b-256 checksum
How to use checksums
6a43b9fbcfd56835c977d2e3ade06361e42abe869bd29a8b73fdb6ecb3a087ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

2 release files

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