Metadata-Version: 2.1
Name: pytodo-package
Version: 0.1.1
Summary: A minimal command line todo list built with Python and MongoDB
Home-page: https://github.com/thescriptninja/pytodo
Author: Parth Paradkar
Author-email: parthparadkar3@gmail.com
Maintainer: Shubhashish Dixit
Maintainer-email: thisisshub@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Description-Content-Type: markdown
Requires-Dist: pymongo (==3.8.0)
Requires-Dist: astroid (==1.6.6)
Requires-Dist: autopep8 (==1.4.4)
Requires-Dist: backports.functools-lru-cache (==1.6.1)
Requires-Dist: configparser (==4.0.2)
Requires-Dist: enum34 (==1.1.6)
Requires-Dist: futures (==3.3.0)
Requires-Dist: isort (==4.3.21)
Requires-Dist: lazy-object-proxy (==1.4.3)
Requires-Dist: mccabe (==0.6.1)
Requires-Dist: pycodestyle (==2.5.0)
Requires-Dist: pylint (==1.9.5)
Requires-Dist: singledispatch (==3.4.0.3)
Requires-Dist: six (==1.13.0)
Requires-Dist: wrapt (==1.11.2)

# pytodo
[![Gitter](https://badges.gitter.im/pytodo/community.svg)](https://gitter.im/pytodo/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

A minimal command line todo list built with Python and MongoDB

![Mongo + Python](/img/mongo_python_love.png)

Living in the command line is blissful. Keeping your things together sometimes isn't. Track your tasks and deadlines with this command line app built with Python and MongoDB

## Installation

### Installing Python libraries
This project uses pipenv to manage dependencies, so make sure you have pipenv installed.
```
pip install pipenv
```
Clone this repository
```
git clone https://github.com/thescriptninja/pytodo.git
```
Use pipenv to install the dependencies
```
pipenv install
```
Create an executable file from the ```script.py``` file

```
cd pytodo/
cp script.py script
sudo chmod +x script
```
Add the following line in .bashrc file after replacing ```CLONED_REPO_PATH``` with the absolute path to the cloned repository.

```
alias pytodo='python3 <CLONED_REPO_PATH>/pytodo/script
```

### Installing MongoDB
Download the required MongoDB package the package repository.
#### For Ubuntu, run the following commands
```
sudo apt update
sudo apt install -y mongodb
```

#### For Fedora users, run the following commands
*Configure the dnf repository*
```
sudo vi /etc/yum.repos.d/mongodb.repo
```
*Install Mongodb*
```
sudo dnf update
sudo dnf install mongodb-org 
```
*Start the Mongodb service*
```
sudo systemctl enable mongod.service
sudo systemctl start mongod.service
```

#### For Arch users, run the following commands
Aur package at [mongodb 4.2.1-1](https://aur.archlinux.org/packages/mongodb/)

### Creating a local database
Start the mongo shell and create a new database with a collection to store the todos
```
mongo
use todo-app
db.createCollection('todos')
```

## Community Channel
Join the converstaion on [Gitter](https://gitter.im/pytodo/community?utm_source=share-link&utm_medium=link&utm_campaign=share-link)


