├── .github └── workflows │ ├── publish.yml │ ├── publish_docs.yml │ └── tests.yml ├── .gitignore ├── LICENSE ├── README.md ├── docsite ├── docs │ ├── assets │ │ ├── toy_schema.gv │ │ └── toy_schema.png │ ├── contributions.md │ ├── guides │ │ ├── concepts.md │ │ ├── index.md │ │ └── quickstart.md │ ├── index.md │ └── installation.md ├── mkdocs.yml ├── requirements.in └── requirements.txt ├── mensor ├── __init__.py ├── backends │ ├── __init__.py │ ├── pandas.py │ └── sql.py ├── constraints.py ├── context.py ├── library │ ├── __init__.py │ └── ratio.py ├── measures │ ├── __init__.py │ ├── providers │ │ ├── __init__.py │ │ ├── base.py │ │ ├── meta.py │ │ └── mutable.py │ ├── registries.py │ └── structures │ │ ├── __init__.py │ │ ├── evaluated.py │ │ ├── feature_spec.py │ │ ├── features.py │ │ ├── meta.py │ │ ├── resolved.py │ │ └── strategy.py ├── metrics │ ├── __init__.py │ ├── registry.py │ └── types.py └── utils │ ├── __init__.py │ └── registry.py ├── pyproject.toml └── tests ├── conftest.py ├── data ├── geography_names.txt ├── names.txt └── person_names.txt ├── measures ├── backends │ └── pandas │ │ └── test_pandas_provider.py ├── providers │ ├── test_meta.py │ ├── test_provider.py │ └── test_resolution.py └── structures │ └── test_features.py ├── test_constraints.py └── test_strategy.py /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/publish_docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/.github/workflows/publish_docs.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/README.md -------------------------------------------------------------------------------- /docsite/docs/assets/toy_schema.gv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/docsite/docs/assets/toy_schema.gv -------------------------------------------------------------------------------- /docsite/docs/assets/toy_schema.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/docsite/docs/assets/toy_schema.png -------------------------------------------------------------------------------- /docsite/docs/contributions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/docsite/docs/contributions.md -------------------------------------------------------------------------------- /docsite/docs/guides/concepts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/docsite/docs/guides/concepts.md -------------------------------------------------------------------------------- /docsite/docs/guides/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/docsite/docs/guides/index.md -------------------------------------------------------------------------------- /docsite/docs/guides/quickstart.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/docsite/docs/guides/quickstart.md -------------------------------------------------------------------------------- /docsite/docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/docsite/docs/index.md -------------------------------------------------------------------------------- /docsite/docs/installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/docsite/docs/installation.md -------------------------------------------------------------------------------- /docsite/mkdocs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/docsite/mkdocs.yml -------------------------------------------------------------------------------- /docsite/requirements.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/docsite/requirements.in -------------------------------------------------------------------------------- /docsite/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/docsite/requirements.txt -------------------------------------------------------------------------------- /mensor/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/__init__.py -------------------------------------------------------------------------------- /mensor/backends/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mensor/backends/pandas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/backends/pandas.py -------------------------------------------------------------------------------- /mensor/backends/sql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/backends/sql.py -------------------------------------------------------------------------------- /mensor/constraints.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/constraints.py -------------------------------------------------------------------------------- /mensor/context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/context.py -------------------------------------------------------------------------------- /mensor/library/__init__.py: -------------------------------------------------------------------------------- 1 | # flake8: noqa 2 | 3 | from .ratio import * 4 | -------------------------------------------------------------------------------- /mensor/library/ratio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/library/ratio.py -------------------------------------------------------------------------------- /mensor/measures/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/measures/__init__.py -------------------------------------------------------------------------------- /mensor/measures/providers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mensor/measures/providers/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/measures/providers/base.py -------------------------------------------------------------------------------- /mensor/measures/providers/meta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/measures/providers/meta.py -------------------------------------------------------------------------------- /mensor/measures/providers/mutable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/measures/providers/mutable.py -------------------------------------------------------------------------------- /mensor/measures/registries.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/measures/registries.py -------------------------------------------------------------------------------- /mensor/measures/structures/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mensor/measures/structures/evaluated.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/measures/structures/evaluated.py -------------------------------------------------------------------------------- /mensor/measures/structures/feature_spec.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/measures/structures/feature_spec.py -------------------------------------------------------------------------------- /mensor/measures/structures/features.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/measures/structures/features.py -------------------------------------------------------------------------------- /mensor/measures/structures/meta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/measures/structures/meta.py -------------------------------------------------------------------------------- /mensor/measures/structures/resolved.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/measures/structures/resolved.py -------------------------------------------------------------------------------- /mensor/measures/structures/strategy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/measures/structures/strategy.py -------------------------------------------------------------------------------- /mensor/metrics/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/metrics/__init__.py -------------------------------------------------------------------------------- /mensor/metrics/registry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/metrics/registry.py -------------------------------------------------------------------------------- /mensor/metrics/types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/metrics/types.py -------------------------------------------------------------------------------- /mensor/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/utils/__init__.py -------------------------------------------------------------------------------- /mensor/utils/registry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/mensor/utils/registry.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/pyproject.toml -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/data/geography_names.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/tests/data/geography_names.txt -------------------------------------------------------------------------------- /tests/data/names.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/tests/data/names.txt -------------------------------------------------------------------------------- /tests/data/person_names.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/tests/data/person_names.txt -------------------------------------------------------------------------------- /tests/measures/backends/pandas/test_pandas_provider.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/tests/measures/backends/pandas/test_pandas_provider.py -------------------------------------------------------------------------------- /tests/measures/providers/test_meta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/tests/measures/providers/test_meta.py -------------------------------------------------------------------------------- /tests/measures/providers/test_provider.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/tests/measures/providers/test_provider.py -------------------------------------------------------------------------------- /tests/measures/providers/test_resolution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/tests/measures/providers/test_resolution.py -------------------------------------------------------------------------------- /tests/measures/structures/test_features.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/tests/measures/structures/test_features.py -------------------------------------------------------------------------------- /tests/test_constraints.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/tests/test_constraints.py -------------------------------------------------------------------------------- /tests/test_strategy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthewwardrop/mensor/HEAD/tests/test_strategy.py --------------------------------------------------------------------------------