dayonewriter
Python wrapper which internally uses dayone-cli. Compatible with Day One 2++.
Make sure that it is installed dayone-cli is installed.
Day One 3 features like audio are not supported.
Installation
pip install dayonewriter
Usage
Creating an Entry with text, photo and tag
from dayonewriter import Entry, dayonewriter, markdown, helper
from datetime import datetime
entry = Entry()
# Providing datetime is compulsary
entry.date = datetime.now()
#optionals
entry.text = 'Hello'
entry.tags = ['Tag 1','Tag2']
entry.photos = ['Photo1','Photo2'] # needs to be maximum 10. If more then checkout helper.list_subset
entry.journal = 'Journal Name'
entry_id = dayonewriter(entry) #sends to dayone using cli
Entry class
each new entry and has these attributes by default:
class Entry:
text: str = ''
tags: list = []
date: datetime = None
photos: list = []
journal: str = None
starred: bool = False
# below attributes are not tested
coordinate: list = []
timezone: list = None
Note:
dateattribute inNoneby default and needs a datetime object.- you can use [{photo}] in entry text to position photo.
helper
Helper contains only 1 method list_subset to create groups of 10 from list.
Helpful when photos are more than 10.
numbers = [1,2,3,4,5,6,7,8,9,10,11,12,13] # works with any data type
print('Without subset ', numbers)
print('With subset' ,helper.list_subset(numbers))
markdown
contains methods which make writing markdown text easier:
- bold
- bullet
- bullet_list
- number_list
- italic
- dayone_link
- photo
- header
- checklist
- online_image
- online_link
- quote
Links:
Metadata
Release files for dayonewriter 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dayonewriter-1.0.tar.gz | 3.8 kB | Without provenance | Details for dayonewriter-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dayonewriter-1.0-py3-none-any.whl | Python 3 | none | any | Details for dayonewriter-1.0-py3-none-any.whl |
Total release size: 9.3 kB
Release files / dayonewriter-1.0.tar.gz
| Download URL | dayonewriter-1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ddb535e70edc7d40a84314c3f4bd46011a7a3ad05e45291b20f2741a6b3d4a7
|
|
BLAKE2b-256 checksum How to use checksums |
f92d6ef272dd11f2038ec3a8374456b47f84e87294989f15edfee56b470bf59a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.3
|
Release files / dayonewriter-1.0-py3-none-any.whl
| Download URL | dayonewriter-1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e8f0bc504ca415062d8249ed56a6a1bd861a2b30912f768ab1873f8dc2cdee0
|
|
BLAKE2b-256 checksum How to use checksums |
38932293bfa0533adbc54f3a7639b2efef6e0b617ee22554a05a57010515bee3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.3
|
Security for dayonewriter 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.