Skip to content

Commit e6b872d

Browse files
author
Aaron Gonzales
committed
renamed all twittersearch -> searchtweets
1 parent 4a7bba4 commit e6b872d

File tree

14 files changed

+48
-40
lines changed

14 files changed

+48
-40
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ throughout your program's session.
181181

182182
.. code:: python
183183
184-
from twittersearch import ResultStream, gen_rule_payload, load_credentials
184+
from searchtweets import ResultStream, gen_rule_payload, load_credentials
185185
186186
Enterprise setup
187187
----------------
@@ -257,7 +257,7 @@ Let's see how it goes:
257257

258258
.. code:: python
259259
260-
from twittersearch import collect_results
260+
from searchtweets import collect_results
261261
262262
.. code:: python
263263

docs/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# You can set these variables from the command line.
55
SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
7-
SPHINXPROJ = twittersearchapi
7+
SPHINXPROJ = searchtweetsapi
88
SOURCEDIR = source
99
BUILDDIR = build
1010

@@ -17,4 +17,4 @@ help:
1717
# Catch-all target: route all unknown targets to Sphinx using the new
1818
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1919
%: Makefile
20-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/source/conf.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
master_doc = 'index'
5656

5757
# General information about the project.
58-
project = 'twitter search api'
58+
project = 'Twitter Search APIs Python Wrapper'
5959
copyright = '2017, twitterdev'
6060
author = 'twitterdev'
6161

@@ -112,7 +112,7 @@
112112
# -- Options for HTMLHelp output ------------------------------------------
113113

114114
# Output file base name for HTML help builder.
115-
htmlhelp_basename = 'twittersearchdoc'
115+
htmlhelp_basename = 'searchtweetsdoc'
116116

117117

118118
# -- Options for LaTeX output ---------------------------------------------
@@ -139,7 +139,7 @@
139139
# (source start file, target name, title,
140140
# author, documentclass [howto, manual, or own class]).
141141
latex_documents = [
142-
(master_doc, 'twittersearch.tex', 'twitter search api Documentation',
142+
(master_doc, 'searchtweets.tex', 'twitter search api Documentation',
143143
'twitterdev', 'manual'),
144144
]
145145

@@ -149,7 +149,7 @@
149149
# One entry per manual page. List of tuples
150150
# (source start file, name, description, authors, manual section).
151151
man_pages = [
152-
(master_doc, 'twittersearch', 'twitter search api Documentation',
152+
(master_doc, 'searchtweets', 'twitter search api Documentation',
153153
[author], 1)
154154
]
155155

@@ -160,8 +160,8 @@
160160
# (source start file, target name, title, author,
161161
# dir menu entry, description, category)
162162
texinfo_documents = [
163-
(master_doc, 'twittersearch', 'twitter search api Documentation',
164-
author, 'twittersearch', 'One line description of project.',
163+
(master_doc, 'searchtweets', 'twitter search api Documentation',
164+
author, 'searchtweets', 'One line description of project.',
165165
'Miscellaneous'),
166166
]
167167

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
:caption: Contents:
1212

1313
self
14-
twittersearch
14+
searchtweets
1515

1616

1717

docs/source/modules.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
twittersearch
1+
searchtweets
22
=============
33

44
.. toctree::
55
:maxdepth: 4
66

7-
twittersearch
7+
searchtweets

docs/source/twittersearch.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
twittersearch package
1+
searchtweets package
22
=====================
33

44
Submodules
55
----------
66

7-
twittersearch\.api\_utils module
7+
searchtweets\.api\_utils module
88
--------------------------------
99

10-
.. automodule:: twittersearch.api_utils
10+
.. automodule:: searchtweets.api_utils
1111
:members:
1212
:undoc-members:
1313
:show-inheritance:
1414

15-
twittersearch\.result\_stream module
15+
searchtweets\.result\_stream module
1616
------------------------------------
1717

18-
.. automodule:: twittersearch.result_stream
18+
.. automodule:: searchtweets.result_stream
1919
:members:
2020
:undoc-members:
2121
:show-inheritance:
2222

23-
twittersearch\.utils module
23+
searchtweets\.utils module
2424
---------------------------
2525

26-
.. automodule:: twittersearch.utils
26+
.. automodule:: searchtweets.utils
2727
:members:
2828
:undoc-members:
2929
:show-inheritance:
@@ -32,7 +32,7 @@ twittersearch\.utils module
3232
Module contents
3333
---------------
3434

35-
.. automodule:: twittersearch
35+
.. automodule:: searchtweets
3636
:members:
3737
:undoc-members:
3838
:show-inheritance:

examples/api_example.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
"outputs": [],
4343
"source": [
44-
"from twittersearch import ResultStream, gen_rule_payload, load_credentials"
44+
"from searchtweets import ResultStream, gen_rule_payload, load_credentials"
4545
]
4646
},
4747
{
@@ -149,7 +149,7 @@
149149
},
150150
"outputs": [],
151151
"source": [
152-
"from twittersearch import collect_results"
152+
"from searchtweets import collect_results"
153153
]
154154
},
155155
{

examples/readme.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ throughout your program's session.
4141

4242
.. code:: python
4343
44-
from twittersearch import ResultStream, gen_rule_payload, load_credentials
44+
from searchtweets import ResultStream, gen_rule_payload, load_credentials
4545
4646
Enterprise setup
4747
----------------
@@ -117,7 +117,7 @@ Let's see how it goes:
117117

118118
.. code:: python
119119
120-
from twittersearch import collect_results
120+
from searchtweets import collect_results
121121
122122
.. code:: python
123123
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def convert_utc_time(datetime_str):
6565
string of GNIP API formatted date.
6666
6767
Example:
68-
>>> from twittersearch.utils import convert_utc_time
68+
>>> from searchtweets.utils import convert_utc_time
6969
>>> convert_utc_time("201708020000")
7070
'201708020000'
7171
>>> convert_utc_time("2017-08-02")
@@ -136,7 +136,7 @@ def gen_rule_payload(pt_rule, results_per_call=500,
136136
137137
Example:
138138
139-
>>> from twittersearch.utils import gen_rule_payload
139+
>>> from searchtweets.utils import gen_rule_payload
140140
>>> gen_rule_payload("kanye west has:geo",
141141
... from_date="2017-08-21",
142142
... to_date="2017-08-22")
@@ -243,7 +243,7 @@ def load_credentials(filename=None, account_type=None):
243243
Returns: dict of your access credentials.
244244
245245
Example:
246-
>>> from twittersearch.api_utils import load_credentials
246+
>>> from searchtweets.api_utils import load_credentials
247247
>>> search_args = load_credentials(account_type="premium")
248248
>>> search_args.keys()
249249
dict_keys(['bearer_token', 'endpoint'])

0 commit comments

Comments
 (0)