Skip to main content

No project description provided

Project description

CCEyes Library

Introduction

CCEyes is a Python CLI and library for the CCEyes project that allows you to easily access the CCEyes API as a provider.

Installation

pip install cceyes

Usage

CLI

root@cceyes:~$ cceyes key
Enter your API key:
API key saved! 
root@cceyes:~$ cceyes datasets | jq
{
  "key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "datasets": [
    {
      "provider": "BetaSeries",
      "type": "TV Series"
    }
  ]
}
root@cceyes:~$ cat ~/productions.json | cceyes upsert | jq
{
  "success": true
}

Library

import cceyes
from cceyes.models import Production, ProductionDataset, ProductionMeta

cceyes.config.set_config('api', 'key', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')

# your ETL logic goes here
# examples are located in examples/ folder
productions = [Production(
    title="The Mandalorian",
    content="The travails of a lone gunfighter in the outer reaches of the galaxy, far from the authority of the New Republic.",
    dataset=ProductionDataset(
        type="TV Series",
        provider="BetaSeries",
    ),
    meta=ProductionMeta(
        id=68726,
        title="The Mandalorian",
        image="https://api.betaseries.com/pictures/shows?key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&id=68726",
    ),
)]

cceyes.providers.upsert(productions)

License

MIT

Resources

Funding

Funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or EACEA. Neither the European Union nor the granting authority can be held responsible for them.Funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or EACEA. Neither the European Union nor the granting authority can be held responsible for them.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cceyes-0.2.6.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

cceyes-0.2.6-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file cceyes-0.2.6.tar.gz.

File metadata

  • Download URL: cceyes-0.2.6.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for cceyes-0.2.6.tar.gz
Algorithm Hash digest
SHA256 2b4b47f4f9b9ae996b2f5e3a0be298b1d1ef3a1cf4fd1ac0e0fbe50d537e4d2e
MD5 bba903c9af99ee1a3ac6df45ed1f68b8
BLAKE2b-256 5eed169193885d9d8cf3b5c87b5d186a013d51c05f947d60c95824efe1ebbabe

See more details on using hashes here.

File details

Details for the file cceyes-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: cceyes-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for cceyes-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9c828a9237b086afde0ef5f32bd9478d259d9f3ad31a2c35c6b8d50c3df7e947
MD5 e713e8d1c751b2d4ab369bd886c3d2ac
BLAKE2b-256 bae5198deb0c1ca217a9aa6da1f70ab57604ada16c3f1b29f164a6dd56da3142

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page