/pycture

A Python CLI for obtaining emojis as files and favicons.

Primary LanguagePythonMIT LicenseMIT

pycture

security: bandit Code style: black

A Python CLI for obtaining emojis as files and favicons.

Quickstart

Usage: pycture [OPTIONS] EMOJI

  Get EMOJI as a file or favicon via its CLDR short name.

  Use Unicode 9.0 and Emoji 3.0 as a reference.

Options:
  -o, --output-dir DIRECTORY      The path to the output directory.
                                  [default: (current directory)]

  -p, --pretty                    Pretty-print the SVG code.
  -s, --source [Twemoji|OpenMoji]
                                  The source of the emoji to obtain.
                                  [default: Twemoji]

  --version                       Show the version and exit.
  --help                          Show this message and exit.

Tech Stack

Packaging and Development

This CLI was created with Cookiecutter and the joaopalmeiro/cookiecutter-templates/python-cli project template.

Development

  1. poetry install
  2. poetry shell

Notes

# aiohttp
async with aiohttp.ClientSession() as session:
    async with session.get("http://python.org") as response:
        print(await response.text())

# vs.

# Requests
response = requests.get("http://python.org")
print(response.text)

# or

with requests.Session() as session:
    response = session.get("http://python.org")
    print(response.text)