• Stars
    star
    157
  • Rank 238,399 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created about 8 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Repo for a project based on https://github.com/mzucker/noteshrink, basically a web wrapper for it. The intention is to make it easy to slap all your docs into pretty pdf file - with universal web interface attached.

Noteshrinker - Django

What is this?

This a webservice, which is designed to help people keep their notes clean and store them in pretty PDF's.

It shrinks & prettifies the images uploaded, which makes them much easier to work with.

Example

Look at the image provided: before_after_image Better resolution is available in the "example" folder of this repo. It is not perfect example, it is the one done with the defaults, yet it can be made better by tweaking settings.

What does it look like?

ui How do I launch it?

Using Python

First of all, get python 3 & then get pip.

Optionally, you could use virtualenv. If you are using virtualenv, do virtualenv venv && source venv/bin/activate and use python instead of python3, and pip instead of pip3

  1. Python 3
  2. Pip
  3. Then, clone this repo (attention! it will be cloned to the current directory, so make sure you do it in some kinda documents or special one) git clone https://github.com/delneg/noteshrinker-django/
  4. Then, cd noteshrinker_django and pip3 install -r requirements.txt
  5. Tweak the settings in the bottom of the settings.py file.
  6. Finally, from the root directory of the project python3 manage.py migrate and python3 manage.py runserver
  7. Navigate to http://localhost:8000 in your browser!

Using Docker (not for production)

Make sure you have Docker installed.

  1. Clone this repository:
    git clone https://github.com/delneg/noteshrinker-django/
  2. cd into the newly created directory:
    cd noteshrinker-django
  3. Build the Docker container:
    docker build -t noteshrinker .
  4. Run the container:
    docker run -p 8000:8000 --rm noteshrinker
    The container will listen on port 8000 (bound to internal port 8000) and will be removed after use (--rm). The server should be up-and-running immediately but it won't tell you. Just go to the next step.
  5. Navigate to http://localhost:8000 in your browser!

License

MIT

Contribution

Feel free to contribute, I will review all responses.

Locales

Currently the app has Russian,English, Portugese (by https://github.com/Qu4tro), Chinese (by https://github.com/gaoyaoxin) languages availiable. Feel free to add your locale - I'll appreciate it!

To add a locale: Add a locale to LANGUAGES in settings.py file

Do django-admin makemessages, edit the django.po file in locale/{local_code}/LC_MESSAGES/

Then run django-admin compilemessages

More Repositories

1

FSAdventArticleFFI

Guide, description and shared knowledge related to FFI in F# and .NET in general
F#
27
star
2

Fable-tauri-vite-feliz-starter

Fable + Vite+ Tauri + React(Feliz)
F#
24
star
3

FullstackWasmFSharpApp

Fullstack WASM Application written in F#, using WASI to compile backend to be run using wasmer / wastime
F#
17
star
4

source-map-sharp

https://github.com/mozilla/source-map for .NET, re-written in F#
F#
14
star
5

Fable-useful-resources

9
star
6

WasmtimeFableRaytracerFSharpAvalonia

F# code transpiled to Rust, compiled to WASM, running in Avalonia app inside Wasmtime WASI Runtime
F#
6
star
7

opendrop-nix-service

Nix Service config for opendrop AirdropServer
Nix
6
star
8

Nuke-AVIF-Plugin

An AVIF plugin for Nuke
Objective-C
6
star
9

fable-sqljs

A simple PoC of Fable running SQL using IndexedDB & SharedArrayBuffer via Service Worker
F#
6
star
10

django-scrumboard

Django app to integrate SCRUM easily
CSS
5
star
11

fable-raytracer-ios-net6

Fable Rust demo by @ncave adapted to iOS in F#
Rust
4
star
12

apple-m1-temp-sensor-objc

ObjC code to get my CPU temp instead of "osx-cpu-temp", intended for use with "archey4"
Objective-C
2
star
13

FSharp.IMCore

Opinionated bindings to System.Collections.Immutable with focus on perfomance over FSharp.Core collections
F#
2
star
14

Economist.com_parser

This is an example of an asynchronous parser,created to show the possibilities of Python 3.5,asyncio and aiohttp.It uses BeautifulSoup for scraping and fetches proxies, if not provided.
Python
1
star
15

bitcoin-address-generator-api

Dummy test project built with actix-web to generate btc (and maybe other) addresses
Rust
1
star
16

SolidityVoting

Vue
1
star
17

TailwindCSS-Typescript-Parcel-React-Template

An opinionated template to start a React project with Parcel 2, TailwindCSS and Typescript configured.
TypeScript
1
star
18

dns_server_csharp

Educational dns server written using Rust tutorial https://github.com/EmilHernvall/dnsguide/
C#
1
star
19

YouTube_SimpleJsonApi_python

Pretty simple YouTube API parser for use as json endpoint
Python
1
star
20

avif-bot-go

Telegram Bot in Go to encode AVIF images
Go
1
star
21

Simple-asyncio-Python-parser

Simple parser I've written to practice in async 3.5 Python code. This can be used for simple tasks like downloading a specific set of images, or a static html website.
Python
1
star
22

avif-microservice

This project is a simple POC to wrap AVIF conversion into a web api using wrap
Rust
1
star
23

cookiecutter-asyncparser

Python3.6 async parser with BeautifulSoup template
Python
1
star