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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file arconstants-0.3.0.tar.gz.

File metadata

  • Download URL: arconstants-0.3.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for arconstants-0.3.0.tar.gz
Algorithm Hash digest
SHA256 dfd5ce9c3e7a96dfdde75afb506559033fbba45bbc0a8cf59b1f1ee6143c0329
MD5 37be59f8e8ab5107f3ae03cc29c961a3
BLAKE2b-256 de8079a021e1d921f6ccd0a2513af236a8da463f83dcb61aed91ccf143861023

See more details on using hashes here.

File details

Details for the file arconstants-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for arconstants-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 31ac164e57a29d76414191533708d17b14220e98245d9170bfa68feb19e15853
MD5 e833aa9a5c5bb6c3abe6018579e6ec29
BLAKE2b-256 6a43b9fbcfd56835c977d2e3ade06361e42abe869bd29a8b73fdb6ecb3a087ec

See more details on using hashes here.

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