
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
django-currency-history
Advanced tools
A reusable Django app that tracks currency rates.
.. image:: https://raw.githubusercontent.com/bitmazk/django-currency-history/master/admin.png
To get the latest stable release from PyPi
.. code-block:: bash
pip install django-currency-history
To get the latest commit from GitHub
.. code-block:: bash
pip install -e git+git://github.com/bitmazk/django-currency-history.git#egg=currency_history
TODO: Describe further installation steps (edit / remove the examples below):
Add currency_history to your INSTALLED_APPS
.. code-block:: python
INSTALLED_APPS = (
...,
'currency_history',
)
Before your tags/filters are available in your templates, load them by using
.. code-block:: html
{% load currency_history_tags %}
Don't forget to migrate your database
.. code-block:: bash
./manage.py migrate currency_history
First fill the database with currencies and add your desired rates. By default you will have to track the history by yourself. Check the management commands and settings for automated trackings.
track_currency_rates ++++++++++++++++++++
Run this command to let external services like fixer.io or Yahoo track currency rates.
./manage.py track_currency_rates
You might want to run it with a cron job.
CURRENCY_SERVICE ++++++++++++++++
Default = None
By default no external service tracks your rate histories. The following services are available:
'fixer': https://fixer.io/'openexchangerates': https://openexchangerates.org/'yahoo': http://finance.yahoo.com/currency-converter/OPENEXCHANGERATES_APP_ID ++++++++++++++++++++++++
Default = False
If you want to make use of the openexchangerates service, make sure to
register at https://openexchangerates.org/ and provide your App ID.
CURRENCY_EMAIL_REPORT +++++++++++++++++++++
Default = False
Enable this settings to receive an email report every time the
track_currency_rates command was called.
convert_currency ++++++++++++++++
Convert an amount from one currency to another using the latest history.
{% load currency_history_tags %}
{% convert_currency 2 'EUR' 'SGD' as converted_amount %}
If you want to contribute to this project, please perform the following steps
.. code-block:: bash
# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 django-currency-history
make develop
git co -b feature_branch master
# Implement your feature and tests
git add . && git commit
git push -u origin feature_branch
# Send us a pull request for your feature branch
FAQs
A reusable Django app that tracks currency rates.
We found that django-currency-history demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.