#quote #reflection #insight #wisdom #inspiration #csv #json-file

bin+lib wiserone

Daily nuggets of wisdom in a clean, minimalist design, inspiring deeper thought and personal growth with every visit

5 releases

0.0.5 Feb 5, 2024
0.0.4 Feb 5, 2024
0.0.3 Jan 21, 2024
0.0.2 Jan 21, 2024
0.0.1 Jan 21, 2024

#140 in Template engine

41 downloads per month

MIT/Apache

40KB
487 lines

the wiser one's logo

The Wiser One

Daily nuggets of wisdom in a clean, minimalist design, inspiring deeper thought and personal growth with every visit.

Made With Rust Crates.io Lib.rs Docs.rs License

WebsiteDocumentationReport BugRequest FeatureContributing Guidelines

divider

Overview 📖

The Wiser One offers daily insights and wisdom in a sleek, minimalist interface, designed to inspire deeper thinking and foster personal growth. Each visit presents a unique opportunity to reflect and gain new perspectives.

Features ✨

Reading Quotes from a JSON File

  • The Wiser One can seamlessly access and parse a wide range of quotes stored in a JSON format. This allows for a diverse and extensive collection of wisdom nuggets. The JSON structure is optimized for quick retrieval, ensuring a smooth user experience.

Reading Quotes from a CSV File

  • The Wiser One can also read quotes from a CSV file. This allows users to easily import their own collection of quotes, or to create a custom library of quotes. The CSV format is simple and intuitive, making it easy to add, edit, or delete quotes. This feature allows users to create a personalized collection of wisdom nuggets.

Randomly Selecting a Quote

  • With an innovative random selection algorithm, the Wiser One presents a different quote each time, making every interaction unique. This feature encourages varied learning and prevents the monotony of repetitive content. The randomness is designed to simulate the unpredictability and richness of gaining wisdom in real life.

Creating an HTML File with a Random Quote

  • The Wiser One can generate a beautifully formatted HTML file for each selected quote. This allows users to save their favourite quotes in a visually appealing format, which can be easily shared or printed. The HTML output includes customizable themes and layouts, giving a personalized touch to each piece of wisdom.

Creating all the HTML Files with all the Quotes

  • The Wiser One can also generate a complete set of HTML files for all the quotes in the library. This allows users to easily access their entire collection of wisdom nuggets in a visually appealing format. The HTML output includes customizable themes and layouts, giving a personalized touch to each piece of wisdom.

These features combine to make the Wiser One a powerful tool for those seeking daily inspiration and wisdom. The application's ease of use, coupled with its thoughtful design, makes it an ideal choice for users looking to enrich their daily routine with meaningful insights.

Getting Started 🚀

It takes just a few minutes to get up and running with wiserone.

Installation

To install wiserone, you need to have the Rust toolchain installed on your machine. You can install the Rust toolchain by following the instructions on the Rust website.

Once you have the Rust toolchain installed, you can install wiserone using the following command:

cargo install wiserone

You can then run the help command to see the available options:

wiserone --help

Requirements

The minimum supported Rust toolchain version is currently Rust 1.75.0 or later (stable).

Platform support

wiserone is supported and tested on the following platforms:

Tier 1 platforms 🏆

Operating System Target Description
Linux aarch64-unknown-linux-gnu 64-bit Linux systems on ARM architecture
Linux i686-unknown-linux-gnu 32-bit Linux (kernel 3.2+, glibc 2.17+)
Linux x86_64-unknown-linux-gnu 64-bit Linux (kernel 2.6.32+, glibc 2.11+)
macOS x86_64-apple-darwin 64-bit macOS (10.7 Lion or later)
Windows i686-pc-windows-gnu 32-bit Windows (7 or later)
Windows i686-pc-windows-msvc 32-bit Windows (7 or later)
Windows x86_64-pc-windows-gnu 64-bit Windows (7 or later)
Windows x86_64-pc-windows-msvc 64-bit Windows (7 or later)

Tier 2 platforms 🥈

Operating System Target Description
Linux aarch64-unknown-linux-musl 64-bit Linux systems on ARM architecture
Linux arm-unknown-linux-gnueabi ARMv6 Linux (kernel 3.2, glibc 2.17)
Linux arm-unknown-linux-gnueabihf ARMv7 Linux, hardfloat (kernel 3.2, glibc 2.17)
Linux armv7-unknown-linux-gnueabihf ARMv7 Linux, hardfloat (kernel 3.2, glibc 2.17)
Linux mips-unknown-linux-gnu MIPS Linux (kernel 2.6.32+, glibc 2.11+)
Linux mips64-unknown-linux-gnuabi64 MIPS64 Linux (kernel 2.6.32+, glibc 2.11+)
Linux mips64el-unknown-linux-gnuabi64 MIPS64 Linux (kernel 2.6.32+, glibc 2.11+)
Linux mipsel-unknown-linux-gnu MIPS Linux (kernel 2.6.32+, glibc 2.11+)
macOS aarch64-apple-darwin 64-bit macOS (10.7 Lion or later)
Windows aarch64-pc-windows-msvc 64-bit Windows (7 or later)

The GitHub Actions shows the platforms in which the wiserone library tests are run.

Documentation

Info: Please check out our website for more information. You can find our documentation on docs.rs, lib.rs and crates.io.

Usage

Command-line interface

wiserone provides a convenient way to generate daily quotes from a JSON file using the command line interface. There are a few options available to help you get started.

Generate a random quote

From JSON

The following command generates a random quote from the quotes.json file.

wiserone --random ./quotes/01-quotes.json

or locally if you have cloned the repository:

cargo run random ./quotes/01-quotes.json
From CSV

The following command generates a random quote from the quotes.csv file.

wiserone --random ./quotes/01-quotes.csv

or locally if you have cloned the repository:

cargo run random ./quotes/01-quotes.csv

To use the wiserone library in your project, add the following to your Cargo.toml file:

[dependencies]
wiserone = "0.0.5"

Add the following to your main.rs file:

use wiserone::*;

then you can use the functions in your application code.

Examples

To get started with wiserone, you can use the examples provided in the examples directory of the project.

To run the examples, clone the repository and run the following command in your terminal from the project root directory.

cargo run --example example

Semantic Versioning Policy 🚥

For transparency into our release cycle and in striving to maintain backward compatibility, wiserone follows semantic versioning.

License 📝

The project is licensed under the terms of MIT OR Apache-2.0.

Contribution 🤝

We welcome all people who want to contribute. Please see the contributing instructions for more information.

Contributions in any form (issues, pull requests, etc.) to this project must adhere to the Rust's Code of Conduct.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Acknowledgements 💙

A big thank you to all the awesome contributors of wiserone for their help and support.

A special thank you goes to the Rust Reddit community for providing a lot of useful suggestions on how to improve this project.

Dependencies

~12–24MB
~359K SLoC