Skip to main content

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# 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arconstants-0.3.0.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

arconstants-0.3.0-py2.py3-none-any.whl (50.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page