vitalk / Flask Humanize
Common humanization utilities for Flask applications
Stars: ✭ 26
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Flask Humanize
Corpus Christi
Church management suite, open source, fully internationalized
Stars: ✭ 29 (+11.54%)
Mutual labels: i18n, flask
Bookflip
Textbook trading website built with Flask and Vue.js
Stars: ✭ 17 (-34.62%)
Mutual labels: flask
Senseme
Python Library for Haiku SenseMe app controlled fans/lights
Stars: ✭ 19 (-26.92%)
Mutual labels: flask
Fullstack Flask Vuejs Argon Design
Flask Vuejs - Built with Automation Tools | AppSeed App Generator
Stars: ✭ 18 (-30.77%)
Mutual labels: flask
Fluddy
🤝 A dependency-free command line utility for managing, updating, creating and launching Flask Apps.
Stars: ✭ 23 (-11.54%)
Mutual labels: flask
Satakieli
Satakieli is a i18n library that provides identical API for ClojureScript and Clojure programmers. Localized messages can be written using ICU MessageFormat syntax.
Stars: ✭ 24 (-7.69%)
Mutual labels: i18n
Kiwi Linter
Lint your JavaScript files for literal strings usage (eg. Chinese) and replace them with one click
Stars: ✭ 19 (-26.92%)
Mutual labels: i18n
Multi Threading Camera Stream
Multi-threading camera stream to improve video processing performance
Stars: ✭ 18 (-30.77%)
Mutual labels: flask
Hello Ai
AI, Tensorflow, Inceptionv3, AI as a Service, Flask
Stars: ✭ 23 (-11.54%)
Mutual labels: flask
Translatedjs
Internationalization and localization for JavaScript and Node.js
Stars: ✭ 17 (-34.62%)
Mutual labels: i18n
Intro To Apis Flask
Starter repository for the Introductions to API course
Stars: ✭ 26 (+0%)
Mutual labels: flask
Microservices Connector
Inter-Service communication framework, support for microservice architecture and distributed system
Stars: ✭ 17 (-34.62%)
Mutual labels: flask
Moment.php
Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
Stars: ✭ 900 (+3361.54%)
Mutual labels: i18n
Letterboxd recommendations
Scraping publicly-accessible Letterboxd data and creating a movie recommendation model with it that can generate recommendations when provided with a Letterboxd username
Stars: ✭ 23 (-11.54%)
Mutual labels: flask
Vulpy
Vulnerable Python Application To Learn Secure Development
Stars: ✭ 25 (-3.85%)
Mutual labels: flask
Flask Humanize
Provides an interface between Flask web framework and humanize library.
Features
-
Add new filter
humanize
to jinja environment, which can be easily used for humanize different objects:-
Integer numbers:
{{ 12345|humanize('intcomma') }} -> 12,345 {{ 12345591313|humanize('intword') }} -> 12.3 billion {{ 5|humanize('apnumber') }} -> five
-
Floating point numbers:
{{ 0.3|humanize('fractional') }} -> 1/3 {{ 1.5|humanize('fractional') }} -> 1 1/2
-
File sizes:
{{ 1000000|humanize('naturalsize') }} -> 1.0 MB {{ 1000000|humanize('naturalsize', binary=True) }} -> 976.6 KiB
-
Date & times:
{{ datetime.datetime.now()|humanize('naturalday') }} -> today {{ datetime.date(2014,4,21)|humanize('naturaldate') }} -> Apr 21 2014 {{ (datetime.datetime.now() - datetime.timedelta(hours=1))|humanize() }} -> an hour ago
-
-
Runtime i18n/l10n
from flask import Flask from flask_humanize import Humanize app = Flask(__name__) humanize = Humanize(app) @humanize.localeselector def get_locale(): return 'ru_RU'
{{ datetime.datetime.now()|humanize }} -> сейчас
-
In order to use UTC time instead of local time for humanize date and time methods use
HUMANIZE_USE_UTC
option, which is disabled by default:HUMANIZE_USE_UTC = True
Issues
Don't hesitate to open GitHub Issues for any bug or suggestions.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].