Skip to content

Commit a201825

Browse files
committed
release 0.0.9
1 parent d065778 commit a201825

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+48
-6
lines changed

.moban.d/docs/source/index.rst.jj2

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,9 @@ dict of a list of lists :meth:`~django_excel.ExcelMixin.get_book_dict`
343343
:class:`pyexcel.Sheet` :meth:`~django_excel.ExcelMixin.get_sheet` :meth:`~django_excel.make_response`
344344
:class:`pyexcel.Book` :meth:`~django_excel.ExcelMixin.get_book` :meth:`~django_excel.make_response`
345345
database table :meth:`~django_excel.ExcelMixin.save_to_database` :meth:`~django_excel.make_response_from_a_table`
346+
:meth:`~django_excel.ExcelMixin.isave_to_database`
346347
a list of database tables :meth:`~django_excel.ExcelMixin.save_book_to_database` :meth:`~django_excel.make_response_from_tables`
348+
:meth:`~django_excel.ExcelMixin.isave_book_to_database`
347349
a database query sets :meth:`~django_excel.make_response_from_query_sets`
348350
a generator for records :meth:`~django_excel.ExcelMixin.iget_records`
349351
a generator of lists :meth:`~django_excel.ExcelMixin.iget_array`
@@ -413,13 +415,27 @@ a generator of lists :meth:`~django_excel.ExcelMixin.iget_array`
413415
:param mapdict: the explicit table column names if your excel data do not have the exact column names
414416
:param keywords: additional keywords to :meth:`pyexcel.Sheet.save_to_django_model`
415417

418+
.. method:: isave_to_database(model=None, initializer=None, mapdict=None, **keywords)
419+
420+
similar to :meth:`~django_excel.ExcelMixin.save_to_database`. But it requires
421+
less memory.
422+
423+
This requires column names must be at the first row.
424+
416425
.. method:: save_book_to_database(models=None, initializers=None, mapdicts=None, **keywords)
417426

418427
:param models: a list of django models
419428
:param initializers: a list of model initialization functions.
420429
:param mapdicts: a list of explicit table column names if your excel data sheets do not have the exact column names
421430
:param keywords: additional keywords to :meth:`pyexcel.Book.save_to_django_models`
422431

432+
.. method:: isave_book_to_database(models=None, initializers=None, mapdicts=None, **keywords)
433+
434+
similar to :meth:`~django_excel.ExcelMixin.save_book_to_database`. But it requires
435+
less memory.
436+
437+
This requires column names must be at the first row in each sheets.
438+
423439
.. method:: free_resources()
424440

425441
It should be called after iget_array and iget_records were used

.moban.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ configuration:
77
targets:
88
- README.rst: README.rst
99
- setup.py: setup.py
10-
- "doc/source/conf.py": "docs/source/conf.py"
10+
- "docs/source/conf.py": "docs/source/conf.py"
1111
- .travis.yml: travis.yml
1212
- requirements.txt: requirements.txt
1313
- LICENSE: LICENSE.jj2
1414
- MANIFEST.in: MANIFEST.in
15-
- "doc/source/index.rst": "docs/source/index.rst.jj2"
15+
- "docs/source/index.rst": "docs/source/index.rst.jj2"
1616
- "tests/requirements.txt": "tests/requirements.txt"

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ test:
44
bash test.sh
55

66
spelling:
7-
sphinx-build -b spelling doc/source/ doc/build/spelling
7+
sphinx-build -b spelling docs/source/ docs/build/spelling
8+
9+
doc:
10+
sphinx-build -b html docs/source docs/build

django_excel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ overrides: "pyexcel.yaml"
22
name: "django-excel"
33
version: 0.0.9
44
current_version: 0.0.9
5-
release: 0.0.8
5+
release: 0.0.9
66
webframework: Django
77
dependencies:
88
- pyexcel-webio>=0.1.2
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

doc/source/conf.py renamed to docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
project = u'django-excel'
2525
copyright = u'2015-2017 Onni Software Ltd.'
26-
version = '0.0.8'
26+
version = '0.0.9'
2727
release = '0.0.9'
2828
exclude_patterns = []
2929
pygments_style = 'sphinx'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

doc/source/index.rst renamed to docs/source/index.rst

Lines changed: 16 additions & 1 deletion
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)