https://github.com/roundpartner/docker-todoist-python
A Docker Container for Todoist Python Library
https://github.com/roundpartner/docker-todoist-python
docker todoist
Last synced: 12 months ago
JSON representation
A Docker Container for Todoist Python Library
- Host: GitHub
- URL: https://github.com/roundpartner/docker-todoist-python
- Owner: roundpartner
- License: mit
- Created: 2017-07-20T01:39:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-08T16:33:28.000Z (over 5 years ago)
- Last Synced: 2025-01-13T12:39:36.507Z (over 1 year ago)
- Topics: docker, todoist
- Language: Dockerfile
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/thomaslorentsen/docker-todoist-python)
[](https://hub.docker.com/r/imacatlol/todoist-python/)
[](https://hub.docker.com/r/imacatlol/todoist-python/)
# Todoist Python
A Docker Container for [Todoist Python Module]([https://developer.todoist.com])
## Creating A Docker Container
In your project create an ```app.py``` script
```python
import todoist
api = todoist.TodoistAPI('secret_api_key')
response = api.sync()
for project in response['projects']:
print(project['name'])
```
Then add your python application to your ```Dockerfile```
```docker
FROM imacatlol/todoist-python
WORKDIR /usr/src/app
COPY . .
CMD [ "python", "./app.py" ]
```
Build the Docker Container
```bash
docker build -t todoist .
```
Then run the Container
```bash
docker run -it --rm --name todoist-app todoist
```