Browse Source

Switch to a better command name

master 0.3.0
Amelia A 3 years ago
parent
commit
d3a7b01d92
Signed by: amy GPG Key ID: 70C320ABA95D38C1
  1. 3
      .gitignore
  2. 4
      MANIFEST.in
  3. 10
      README.md
  4. 8
      setup.cfg
  5. 0
      tootlogger.toml.example
  6. 0
      tootlogger/__init__.py
  7. 2
      tootlogger/_version.py
  8. 4
      tootlogger/cli.py
  9. 0
      tootlogger/templates/template.jinja2

3
.gitignore

@ -1,5 +1,4 @@
config.toml
toot_logger.toml
tootlogger.toml
*.pyc
/dist/

4
MANIFEST.in

@ -1,4 +1,4 @@
include README.md
include toot_logger/templates/*.jinja2
include tootlogger/templates/*.jinja2
include tootlogger/_version.py
include versioneer.py
include toot_logger/_version.py

10
README.md

@ -1,4 +1,4 @@
# toot_logger
# tootlogger
## Journal your toots to DayOne
@ -12,7 +12,7 @@ If you miss a day of running this it, it will backfill up to the pagination limi
1. Ensure you have at least Python 3.6 on your mac
- [homebrew](https://brew.sh/) makes this easy with `brew install python`
1. Install the [DayOne Command Line Interface](http://help.dayoneapp.com/tips-and-tutorials/command-line-interface-cli)
1. Install toot_logger with `pip3 install https://onlyhavecans.works/amy/toot_logger/archive/master.tar.gz#egg=package-1.0`
1. Install toot_logger with `pip3 install tootlogger`
## Setup
@ -24,8 +24,8 @@ You will need to manually generate your access token and create a config file
- Read permissions are fine
1. Note down the `access_token`
1. Create a config file like the example below (or in this repo) in one of two places
1. `$HOME/.toot_logger.toml`
1. `toot_logger.toml` in the local directory you run the command from.
1. `$HOME/.tootlogger.toml`
1. `tootlogger.toml` in the local directory you run the command from.
### Config file
@ -36,4 +36,4 @@ access_token = "really big string"
## Usage
1. run `toot_logger` to log all of your toots to DayOne
1. run `tootlogger` to log all of your toots to DayOne

8
setup.cfg

@ -1,9 +1,9 @@
[metadata]
name = toot_logger
name = tootlogger
author = Amy Aronsohn
author_email = "WagThatTail@Me.com"
description = Log your Mastodon toots to DayOne
url = https://onlyhavecans.works/amy/toot_logger
url = https://onlyhavecans.works/amy/tootlogger
keywords =
mastodon
social networking
@ -39,7 +39,7 @@ tests =
[options.entry_points]
console_scripts =
toot_logger = toot_logger.cli:main
tootlogger = tootlogger.cli:main
[flake8]
max-line-length = 132
@ -48,7 +48,7 @@ exclude = .git,__pycache__,doc/,docs/,build/,dist/,archive/
[versioneer]
VCS = git
style = pep440
versionfile_source = toot_logger/_version.py
versionfile_source = tootlogger/_version.py
versionfile_build = None
tag_prefix =
parentdir_prefix =

0
toot_logger.toml.example → tootlogger.toml.example

0
toot_logger/__init__.py → tootlogger/__init__.py

2
toot_logger/_version.py → tootlogger/_version.py

@ -43,7 +43,7 @@ def get_config():
cfg.style = "pep440"
cfg.tag_prefix = ""
cfg.parentdir_prefix = ""
cfg.versionfile_source = "toot_logger/_version.py"
cfg.versionfile_source = "tootlogger/_version.py"
cfg.verbose = False
return cfg

4
toot_logger/cli.py → tootlogger/cli.py

@ -12,8 +12,8 @@ import toml
from jinja2 import Environment, select_autoescape, PackageLoader
from mastodon import Mastodon
APP_NAME = "toot_logger"
CONFIG_FILE = "toot_logger.toml"
APP_NAME = "tootlogger"
CONFIG_FILE = "tootlogger.toml"
DAYONE_CLI = "/usr/local/bin/dayone2"
DAYONE_COMMAND = "new"
LOCAL_TZ = datetime.now().tzinfo

0
toot_logger/templates/template.jinja2 → tootlogger/templates/template.jinja2

Loading…
Cancel
Save