Skip to content

Commit

Permalink
Remove pymongo from main dependency list
Browse files Browse the repository at this point in the history
Pymongo isn't required unless the Mongo DB storage adapter is being
used. By not installing pymongo automatically, the installation
footprint of ChatterBot is decreased in size, which can be useful
when installing on devices that have limited storage space.
  • Loading branch information
gunthercox committed May 17, 2019
1 parent a338315 commit ccd50f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
coveralls
flake8
nose
pymongo>=3.3,<4.0
twine
twython
sphinx>=1.8,<1.9
Expand Down
8 changes: 8 additions & 0 deletions docs/storage/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ SQL Storage Adapter
MongoDB Storage Adapter
=======================

.. note::

Before you can use this storage adapter you will need to install
`pymongo`_. Consider adding ``pymongo`` to your project's
``requirements.txt`` file so you can keep track of your dependencies
and their versions.

.. autoclass:: chatterbot.storage.MongoDatabaseAdapter
:members:

Expand All @@ -64,3 +71,4 @@ each of the databases that ChatterBot comes with support for.
* MongoDB: No migrations are provided.

.. _Alembic: https://alembic.sqlalchemy.org
.. _pymongo: https://pypi.org/project/pymongo/
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ git+git://github.com/gunthercox/chatterbot-corpus@master#egg=chatterbot_corpus
mathparse>=0.1,<0.2
nltk>=3.2,<4.0
pint>=0.8.1
pymongo>=3.3,<4.0
python-dateutil>=2.7,<2.8
pyyaml>=5.1,<5.2
spacy>=2.1,<2.2
Expand Down

0 comments on commit ccd50f2

Please sign in to comment.