Metadata-Version: 2.1
Name: gto
Version: 0.3.1
Summary: Version and deploy your models following GitOps principles
Download-URL: https://github.com/iterative/gto
Author: Alexander Guschin
Author-email: aguschin@iterative.ai
License: Apache License 2.0
Keywords: git repo repository artifact registry developer-tools collaboration
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Provides-Extra: tests
License-File: LICENSE

# GTO

[![Check, test and release](https://github.com/iterative/gto/actions/workflows/check-test-release.yml/badge.svg)](https://github.com/iterative/gto/actions/workflows/check-test-release.yml)
[![Codecov](https://codecov.io/gh/iterative/gto/branch/main/graph/badge.svg?token=NXT11717BG)](https://codecov.io/gh/iterative/gto)
[![PyPi](https://img.shields.io/pypi/v/gto.svg?label=pip&logo=PyPI&logoColor=white)](https://pypi.org/project/gto)

Git Tag Ops. Turn your Git repository into an Artifact Registry:

- Registry: Track new artifacts and their versions for releases and significant
  changes.
- Lifecycle Management: Create actionable stages for versions marking status of
  artifact or it's readiness to be consumed by a specific environment.
- GitOps: Signal CI/CD automation or other downstream systems to act upon these
  new versions and lifecycle updates.
- Enrichments: Annotate and query artifact metadata with additional information.

GTO works by creating annotated Git tags in a standard format.

## Installation

GTO requires Python 3. It works on any OS.

```console
$ pip install gto
```

This will install the `gto`
[command-line interface](https://mlem.ai/doc/gto/command-reference) (CLI) and
make the Python API available for use in code.

## Getting started

To Get Started, please head to [GTO docs](https://mlem.ai/doc/gto/get-started).

## Contributing

Contributions are welcome! Please see our
[Contributing Guide](https://mlem.ai/doc/contributing/core) for more details.

Check out the
[DVC weekly board](https://github.com/orgs/iterative/projects/189)
to learn about what we do, and about the exciting new functionality that is
going to be added soon.

Thanks to all our contributors!

<details>

How to setup GTO development environment

1. Clone this repository

```console
$ git clone git@github.com:iterative/gto.git
$ cd gto
```

2. Create virtual environment named `venv`

```console
$ python3 -m venv .venv
$ source .venv/bin/activate
```

Install python libraries

```console
$ pip install --upgrade pip ".[tests]"
```

3. Run

```console
$ pytest --basetemp=pytest-basetemp
```

This will create `pytest-basetemp/` directory with some fixtures that can serve
as examples.

Notably, check out this dir:

```console
$ cd pytest-basetemp/test_api0/
$ gto show -v
```

The code that generates this folder could be found
[in this fixture](https://github.com/iterative/gto/blob/main/tests/conftest.py#L58).

To continue experimenting, call `gto --help`

</details>

## Copyright

This project is distributed under the Apache license version 2.0 (see the
LICENSE file in the project root).

By submitting a pull request to this project, you agree to license your
contribution under the Apache license version 2.0 to this project.
