semvec/pypi-packages huggingface dataset:
python3-cisctl 1.1.0
Container Images Sync Client
Requires Python: >=3.6

# Container Images Sync

[![PyPI-python3-cisctl](https://img.shields.io/pypi/v/python3-cisctl.svg?maxAge=3600)](https://pypi.org/project/python3-cisctl/)

Github Actions for [Container Images Sync](https://github.com/marketplace/actions/container-images-sync)

## How to Use by Github Actions

```
    - name: Container Images Sync
      uses: x-actions/python3-cisctl@v1
      env:
        GIT_ORG: "x-mirrors"
        GIT_REPO: "gcr.io"
        GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        SRC_IMAGE_LIST_URL: "https://raw.githubusercontent.com/x-mirrors/gcr.io/main/k8s.txt"
        DEST_REPO: "docker.io/gcmirrors"
        SRC_TRANSPORT: "docker"
        DEST_TRANSPORT: "docker"
        DEST_TRANSPORT_USER: "user"
        DEST_TRANSPORT_PASSWORD: "password"
        LOG_LEVEL: "DEBUG"
```

Environment Variables:

- GIT_ORG: github org
- GIT_REPO: github repo
- GIT_TOKEN: github token
- SRC_IMAGE_LIST_URL: SRC_IMAGE_LIST_URL, default: "https://raw.githubusercontent.com/x-mirrors/gcr.io/main/k8s.txt"
- DEST_REPO: DEST register REPO
- SRC_TRANSPORT: SRC TRANSPORT
- DEST_TRANSPORT: DEST TRANSPORT
- DEST_TRANSPORT_USER: user
- DEST_TRANSPORT_PASSWORD: "password"
- THREAD_POOL_NUM: sync thread pool num

## Dev and Test

- local run

```
# install
pip3 install -r requirements.txt
python3 setup.py install
# or
pip3 install python3-cisctl

# set env
export GIT_ORG="x-mirrors"
export GIT_REPO="gcr.io"
export GIT_TOKEN='${{ secrets.GITHUB_TOKEN }}'
export SRC_IMAGE_LIST_URL="https://raw.githubusercontent.com/x-mirrors/gcr.io/main/k8s.txt"
export DEST_REPO="docker.io/gcmirrors"
export SRC_TRANSPORT="docker"
export DEST_TRANSPORT="docker"
export DEST_TRANSPORT_USER="xianbinxie"
export DEST_TRANSPORT_PASSWORD="<passwords>"

# run sync
cisctl
```

- tests

```
python3 -m unittest cisctl.tests.unit.test_skopeo.SkopeoTestCase.test_do_sync
```

- [Docker API Rate Limiting](https://docs.docker.com/docker-hub/api/latest/#tag/rate-limiting)

- X-RateLimit-Limit - The limit of requests per minute.
- X-RateLimit-Remaining - The remaining amount of calls within the limit period.
- X-RateLimit-Reset - The unix timestamp of when the remaining resets.

If you have hit the limit, you will receive a response status of 429 and the X-Retry-After header in the response.

The X-Retry-After header is a unix timestamp of when you can call the API again.

```
< x-ratelimit-limit: 180
< x-ratelimit-reset: 1646881125
< x-ratelimit-remaining: 180
```

## ref

- [install skopeo](https://www.xiexianbin.cn/container/tools/skopeo/)
- replace old tools [x-mirrors/gcmirrors](https://github.com/x-mirrors/gcmirrors)
zhanutils 0.1.2
Python Boilerplate contains all the boilerplate you need to create a Python package.
Requires Python: >=3.6
Keywords: zhanutils

=========
zhanutils
=========






Python Boilerplate contains all the boilerplate you need to create a Python package.



Features
--------

* TODO

Credits
-------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


=======
History
=======

0.1.0 (2022-12-01)
------------------

* First release on PyPI.
latest-news 0.3
This package will get the latest news from the source all website in indonesia
Requires Python: >=3.6

# Latest News Indonesia
This package contains the latest news from various official Indonesian websites

## HOW IT WORK?
This package will be taken from the [Official Indonesian Website] (https://www.cnnindonesia.com/) and (https://www.kompas.com) to find out the latest news happening in Indonesia.

This package will use BeautifulSoup4 and Request, to produce output in the form of JSON ready for use in web or mobile applications
## HOW TO USE
```
import BeritaTerkini.CNN
import BeritaTerkini.Kompas


if __name__ == '__main__':
    print('Sumber Berita : https://www.kompas.com/')
    data = BeritaTerkini.CNN.isi()
    BeritaTerkini.CNN.wadah(data)
    print('Sumber Berita : https://www.cnnindonesia.com/')
    data = BeritaTerkini.Kompas.isi()
    BeritaTerkini.Kompas.wadah(data)

```

# Author
Rafi Ramdhani