Skip to main content

A journaling prompt library

Project description

Journalyze

A Python library to facilitate the journinaling experience.

GitHub Build Status codecov PyPI Documentation Status Docs

Overview

Journalyze:

  • Fetches journaling prompts

Installation

pip install --upgrade journalyze

How to Use

from journalyze import *

# Randomly select and return a prompt from the list of prompts in csv file
get_prompt()

# Randomly select and return an easy/short prompt
get_prompt_easy()

# Randomly select a given number of prompts and return
get_prompt_num()

# Adds a new given prompt to the list of prompts in csv file
add_prompt()

# Removes a given prompt from the list of prompts in csv file
remove_prompt()

# Searches the list of prompts for a keyword and returns a list of prompts that contain the keyword.
search_prompt()

Example

Running the following code

import journalyze as dp

dp = DailyPrompt('journalyze/prompts.csv')
prompt = dp.get_prompt()
print(prompt)

Outputs something like this to the console

Describe yourself using the first 10 words that come to mind. Then list 10 words that you’d like to use to describe yourself. List a few ways to transform those descriptions into reality.

Details

This project is a pure python project using modern tooling. It uses a Makefile as a command registry, with the following commands:

  • make: list available commands
  • make develop: install and build this library and its dependencies using pip
  • make build: build the library using setuptools
  • make lint: perform static analysis of this library with flake8 and black
  • make format: autoformat this library using black
  • make annotate: run type checking using mypy
  • make test: run automated tests with pytest
  • make coverage: run automated tests with pytest and collect coverage information
  • make dist: package library for distribution

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

journalyze-0.1.1.tar.gz (41.5 kB view details)

Uploaded Source

File details

Details for the file journalyze-0.1.1.tar.gz.

File metadata

  • Download URL: journalyze-0.1.1.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for journalyze-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d11e74e09b385765281df721eb0bdc0a84dfabaceeea25fa1d140d711295a962
MD5 d9d254c29dc0e6397082db2f75f0798e
BLAKE2b-256 a63ad81dc24eabf85a68b2e2ec122d4c3fd5cb5fae8214d89c86b5277c8c34db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page