Metadata-Version: 2.1
Name: sthreepo
Version: 0.0.2
Summary: Simple Debian repository manager using S3
Home-page: https://github.com/juitnow/sthreepo
Author: Juit Developers
Author-email: developers@juit.com
Maintainer: Juit Developers
Maintainer-email: developers@juit.com
License: Apache-2.0
Keywords: AWS,DEB,Debian,Repository,S3
Platform: UNKNOWN
Classifier: Topic :: System :: Operating System
Classifier: Topic :: System :: Software Distribution
Classifier: Topic :: System :: Systems Administration
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE.md
License-File: NOTICE.md

A simple Debian repository using S3
===================================

`sthreepo` (read _ess-three-p-oh_) is an extremely simple (and far _FAR_ from
complete) Debian repository manager using [AWS S3](https://aws.amazon.com/s3/)
for storage and [AWS KMS](https://aws.amazon.com/kms/) for signature keys.

* [Signature Keys](#signature-keys)
* [Copyright Notice](NOTICE.md)
* [License](LICENSE.md)


Signature Keys
--------------

Signature keys are managed in AWS KMS, using the
[`pgpkms`](https://pypi.org/project/pgpkms/) library. Read its documentation
to better understand how to create and manage those keys.


Creating a Repository
---------------------

A repository can be created by simply invoking `sthreepo` with a bucket name,
default index and (optional) origin and label:

```bash
$ python3 -m sthreepo \
  --bucket=my-repo-bucket \
  --default-index=buster:main \
  --origin=Juit \
  --label=Juit
```

Adding Packages
---------------

Once the repository is created (and its state stored in S3) adding packages
should be as easy as calling:

```bash
$ python3 -m sthreepo -b=my-repo-bucket ./my-package.deb
```

Further Help
------------

Look at the command line help for more information:

```bash
$ python3 -m sthreepo -h

Usage: python3 -m sthreepo [options] <package.deb>

Options:
  -b, --bucket=<name>   The AWS bucket name of the repository.
  -c, --create-index=distribution:component
                        Create a new index in the repository.
  -d, --default-index=distribution:component
                        Set the default index for the repository.
  -i, --index=distribution:component
                        Use the specified index for the new package.
  -k, --key=<id>        The ID, ARN, or alias of the key to use.
  -l, --label=<label>   Set the label for the repository.
  -n, --name=<name>     The name of the repository (default: "repository").
  -o, --origin=<origin> Set the origin for the repository.
  -v, --verbose         Be more verbose.

Environment Variables:
  STHREEPO_BUCKET       The AWS bucket name of the repository.
  STHREEPO_KEY          The default ID, ARN or alias of the KMS key to use.
```


