Skip to content

Commit

Permalink
pydicts-0.12.0 (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
turulomio authored Jan 16, 2024
1 parent e8b87cb commit b3472b4
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 10 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ You can access documentation in [Pydicts Github page](https://turulomio.github.i

## CHANGELOG

### 0.12.0 (2024-01-16)
- Improved percentage logic
- Integrated ccy module for currencies listing
- Added more test. Coverage is now 86%
- Added support to ISO 8601 durations casts. Added support to durations in MyJsonEncoder module
- Added jupyter-book support for documentation
- Added project logo
- Fixed jinja2 dependency security warnning

### 0.11.0 (2023-12-13)
- Added in casts ignore_exceptions parameter in all methods
- Added a lot of tests. Test coverage is now 73%.
Expand Down
6 changes: 3 additions & 3 deletions docs/casts.html
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,8 @@ <h3>dtaware_now<a class="headerlink" href="#dtaware-now" title="Permalink to thi
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-01-16 19:06:54.277087+00:00
2024-01-16 20:06:54.278501+01:00
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-01-16 19:16:26.564968+00:00
2024-01-16 20:16:26.565215+01:00
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -676,7 +676,7 @@ <h3>dtnaive_now<a class="headerlink" href="#dtnaive-now" title="Permalink to thi
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>datetime.datetime(2024, 1, 16, 19, 6, 54, 282126)
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>datetime.datetime(2024, 1, 16, 19, 16, 26, 568404)
</pre></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pydicts/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime
__version__="0.11.0"
__versiondatetime__= datetime(2023, 12, 13, 19, 2)
__version__="0.12.0"
__versiondatetime__= datetime(2024, 1, 16, 19, 10)
__versiondate__=__versiondatetime__.date()
2 changes: 1 addition & 1 deletion pydicts/locale/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ msgid "This list of dictionaries hasn't data to print"
msgstr "Esta lista de diccionarios no tiene datos para imprimir"

msgid "Keys names are not correct in dictionary in lod_year_month_value_transposition function"
msgstr ""
msgstr "Los nombres de las llaves no son correctar en el diccionario de la función lod_year_month_value_transposition"

msgid "Keys names are not correct in dictionary in lod_ymv_transposition function"
msgstr ""
Expand Down
Binary file modified pydicts/locale/es/LC_MESSAGES/pydicts.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion pydicts/locale/pydicts.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-12-13 19:07+0100\n"
"POT-Creation-Date: 2024-01-16 19:16+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion pydicts/tests/test_casts.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def test_str2date():
assert casts.str2date("2023-11-26", "YYYY-MM-DD")==date(2023, 11, 26)
assert casts.str2date("26/11/2023", "DD/MM/YYYY")==date(2023, 11, 26)
assert casts.str2date("26.11.2023", "DD.MM.YYYY")==date(2023, 11, 26)
assert casts.str2date("26/11", "DD/MM")==date(2023, 11, 26)
assert casts.str2date("26/11", "DD/MM")==date(date.today().year, 11, 26)

def test_str2dtnaive():
assert casts.str2dtnaive("202311261705", "%Y%m%d%H%M")==datetime(2023, 11, 26, 17, 5)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pydicts"
version = "0.11.0"
version = "0.12.0"
description = "Module to use dictionaries in various situations"
authors = ["turulomio <[email protected]>"]
license = "GPL-3.0"
Expand Down

0 comments on commit b3472b4

Please sign in to comment.