Skip to content

Metadata

Orionis Framework exposes a metadata module that centralizes identity, version, authorship, and resource information for the project. This module is located at orionis.metadata.framework and contains a set of constants describing the fundamental properties of the framework.

These constants are used internally by the framework to:

  • Identify the package within the Python ecosystem (PyPI).
  • Validate the minimum required interpreter version.
  • Generate diagnostic messages, logs, and console output.
  • Reference repositories, documentation, and public API endpoints.

They are also available to application developers who need to query framework information at runtime — for example, to include it in diagnostic screens, error reports, or integrations with monitoring services.

You can import constants individually or access the full module:

Individual import

from orionis.metadata.framework import NAME, VERSION, AUTHOR

Full module import

from orionis.metadata import framework as fw
print(fw.NAME) # "orionis"
print(fw.VERSION) # "0.756.0"

Package name as registered on PyPI.

PropertyValue
Typestr
Value"orionis"
FormatLowercase, no spaces
from orionis.metadata.framework import NAME
print(NAME) # "orionis"

Current framework version, following a semantic versioning scheme with dot-separated numeric segments.

PropertyValue
Typestr
FormatMAJOR.MINOR.PATCH (e.g. "0.756.0")
from orionis.metadata.framework import VERSION
print(VERSION) # "0.756.0"

This constant is useful for compatibility validations or for displaying the version in the user interface:

from orionis.metadata.framework import VERSION
segments = VERSION.split(".")
major, minor, patch = int(segments[0]), int(segments[1]), int(segments[2])

Full name of the primary author or maintainer of the project.

PropertyValue
Typestr
Value"Raul Mauricio Uñate Castro"
from orionis.metadata.framework import AUTHOR

Email address of the primary author or maintainer.

PropertyValue
Typestr
Value"raulmauriciounate@gmail.com"
FormatValid email address
from orionis.metadata.framework import AUTHOR_EMAIL

Short project description that identifies its purpose within the Python ecosystem.

PropertyValue
Typestr
Value"Orionis Framework — Async-first full-stack framework for modern Python applications."
from orionis.metadata.framework import DESCRIPTION

URL of the starter template repository (skeleton), used to create new projects based on Orionis Framework.

PropertyValue
Typestr
Value"https://github.com/orionis-framework/skeleton"
ProtocolHTTPS
from orionis.metadata.framework import SKELETON

URL of the main framework repository.

PropertyValue
Typestr
Value"https://github.com/orionis-framework/framework"
ProtocolHTTPS
from orionis.metadata.framework import FRAMEWORK

URL of the official framework documentation.

PropertyValue
Typestr
Value"https://orionis-framework.com/"
ProtocolHTTPS
from orionis.metadata.framework import DOCS

URL of the PyPI JSON endpoint for querying package information programmatically.

PropertyValue
Typestr
Value"https://pypi.org/pypi/orionis/json"
ProtocolHTTPS
from orionis.metadata.framework import API
# Example: query the latest version from PyPI
import urllib.request
import json
with urllib.request.urlopen(API) as response:
data = json.loads(response.read())
latest = data["info"]["version"]
print(f"Latest version on PyPI: {latest}")

Tuple indicating the minimum Python version required to run the framework.

PropertyValue
Typetuple[int, int]
Value(3, 14)
Format(MAJOR, MINOR)
from orionis.metadata.framework import PYTHON_REQUIRES
print(PYTHON_REQUIRES) # (3, 14)

This constant can be used to validate the runtime environment:

import sys
from orionis.metadata.framework import PYTHON_REQUIRES
if sys.version_info[:2] < PYTHON_REQUIRES:
raise RuntimeError(
f"Orionis requires Python {PYTHON_REQUIRES[0]}.{PYTHON_REQUIRES[1]} or higher. "
f"Current version: {sys.version_info[0]}.{sys.version_info[1]}"
)
ConstantTypeDescription
NAMEstrPackage name ("orionis")
VERSIONstrCurrent framework version
AUTHORstrPrimary author name
AUTHOR_EMAILstrAuthor contact email
DESCRIPTIONstrProject description
SKELETONstrSkeleton repository URL
FRAMEWORKstrFramework repository URL
DOCSstrOfficial documentation URL
APIstrPyPI JSON endpoint URL
PYTHON_REQUIREStuple[int, int]Minimum required Python version

The metadata module is located at the following path within the framework source code:

orionis/
└── metadata/
└── framework.py

You can access both the full module (orionis.metadata.framework) and the containing package (orionis.metadata), which exposes the framework submodule as an attribute.

  • All URLs use the HTTPS protocol.
  • Each URL is unique and points to a distinct resource within the Orionis Framework ecosystem.
  • PYTHON_REQUIRES is compatible with sys.version_info for direct version comparisons.
  • NAME follows Python package naming conventions: lowercase, no spaces.
  • VERSION follows a numeric pattern with dot-separated segments, where each segment is an integer.