Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit191f7f8

Browse files
committed
Merge pull request#5 from tomxtobin/fix-doc-typos-style
Fix minor documentation typos and style issues
2 parents2d3f347 +14c30e3 commit191f7f8

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

‎README.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ How to Improve TinyDB Performance
119119
`````````````````````````````````
120120

121121
The default storage serializes the data using JSON. To improve performance,
122-
you can install `ujson<http://pypi.python.org/pypi/ujson>`_ ,a extremely
122+
you can install `ujson<http://pypi.python.org/pypi/ujson>`_ ,an extremely
123123
fast JSON implementation. TinyDB will auto-detect and use it if possible.
124124

125125
In addition, you can wrap the storage with the ``CachingMiddleware`` which

‎docs/extend.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ To write a custom storage, subclass :class:`~tinydb.middlewares.Middleware`:
4242

4343
To access the underlying storage's
4444
read method, use
45-
:func:`self.stroage.read <tinydb.storages.Storage.read>`.
45+
:func:`self.storage.read <tinydb.storages.Storage.read>`.
4646

4747
..function::write(self, data)
4848

4949
Modify the way TinyDB writes data.
5050

5151
To access the underlying storage's
5252
read method, use
53-
:func:`self.stroage.read <tinydb.storages.Storage.write>`.
53+
:func:`self.storage.read <tinydb.storages.Storage.write>`.
5454

5555
To use your middleware, use:
5656

‎docs/intro.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ TinyDB has been tested with Python 2.6, 2.7, 3.2, 3.3 and pypy.
4040
Why **not** using TinyDB?
4141
-----------------------------
4242

43-
- You need **advanced features** like multiple indexes,a HTTP server,
43+
- You need **advanced features** like multiple indexes,an HTTP server,
4444
relationships, or similar.
4545
- You are really concerned about **high performance** and need a high speed
4646
database.

‎docs/limitations.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ TinyDB serializes all data using the
88
`Python JSON<http://docs.python.org/2/library/json.html>`_ module by default.
99
It serializes most basic Python data types very well, but fails serializing
1010
classes and stores ``tuple`` as ``list``. If you need a better
11-
serializer, you can write your own storage, that e.g. uses the morepowerfull
11+
serializer, you can write your own storage, that e.g. uses the morepowerful
1212
(but also slower) `pickle<http://docs.python.org/library/pickle.html>`_ or
1313
`PyYAML<http://pyyaml.org/>`_.
1414

1515
Performance
1616
^^^^^^^^^^^
1717

18-
TinyDB is NOT designed to be used in environments, where performance might be
19-
an issue.Altough you can improve the TinyDB performance as described below,
18+
TinyDB is NOT designed to be used in environments where performance might be
19+
an issue.Although you can improve the TinyDB performance as described below,
2020
you should consider using a DB that is optimized for speed likeBuzhug_ or
2121
CodernityDB_.
2222

2323
How to Improve TinyDB Performance
2424
`````````````````````````````````````
2525

2626
The default storage serializes the data using JSON. To improve performance, you
27-
can install `ujson<http://pypi.python.org/pypi/ujson>`_ ,a extremely fast
27+
can install `ujson<http://pypi.python.org/pypi/ujson>`_ ,an extremely fast
2828
JSON implementation. TinyDB will auto-detect and use it if possible.
2929

3030
In addition, you can wrap the storage with the

‎docs/usage.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Getting the database size (number of elements stored):
6060
3
6161

6262

63-
Search for all elements, that have the ``value`` key defined:
63+
Search for all elements that have the ``value`` key defined:
6464

6565
>>>db.search(where('value'))
6666
[{'int': 1, 'value': 5.0}]
@@ -185,7 +185,7 @@ TinyDB ships with these middlewares:
185185
read operations and writes data to disk every
186186
``CachingMiddleware.WRITE_CACHE_SIZE`` write operations.
187187
- **ConcurrencyMiddleware**: Allows you to use TinyDB in multithreaded
188-
environments by using a lock on read and write operations making
188+
environments by using a lock on read and write operations, making
189189
them virtually atomic.
190190

191191
..hint::

‎tinydb/queries.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def matches(self, regex):
8484

8585
deftest(self,func):
8686
"""
87-
Runan userdefined test function against a dict value.
87+
Runa user-defined test function against a dict value.
8888
8989
>>> def test_func(val):
9090
... return val == 42
@@ -316,7 +316,7 @@ def __repr__(self):
316316

317317
classQueryCustom(AndOrMixin):
318318
"""
319-
Runan userdefined test function against a dict value.
319+
Runa user-defined test function against a dict value.
320320
321321
See :meth:`Query.test`.
322322
"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp