Skip to main content

A Python wrapper for DOIP.

Project description

DOIPY

Install

Simply run

$ pip install doipy

Usage

This doipy package has two methods:

  • hello(name: str): say hello to the input name.
  • create(files: list[BinaryIO]): loop through a list of files and do something.

To use it in the Command Line Interface, run:

$ doipy hello John
# Output of the hello command

$ doipy create file1 file2 file3
# Output of the create command

To use it in the Python code simply import it and call the exposed methods.

from doipy import hello, create

hello(name='John')

with open('file1.txt', 'rb') as file1, open('file2.png', 'rb') as file2:
    create(files=[file1, file2])

For developer

The project is managed by Poetry. Therefore, make sure that Poetry is installed in your system. Then run

$ poetry install

to install all dependencies.

Then, install doipy package in editable mode. To do so, under the root directory, run:

$ pip install --editable .

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

doipy-0.1.3.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

doipy-0.1.3-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

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