Skip to content

Commit 05d58a8

Browse files
committed
Ensure naming consistency
Rename: chat_replay_downloader -> chat_downloader chat-replay-downloader -> chat-downloader
1 parent 959da7c commit 05d58a8

Some content is hidden

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

45 files changed

+77
-526
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A clear and concise description of what the bug is.
2424
### If running from the command line, provide the following:
2525
1. The command used (including the verbose tag, `-v`):
2626
```
27-
chat_replay_downloader -v URL [OPTIONS]
27+
chat_downloader -v URL [OPTIONS]
2828
```
2929
2. Output from the above command:
3030
```

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ deploy:
2525
secure: PLEASE_REPLACE_ME
2626
on:
2727
tags: true
28-
repo: xenova/chat_replay_downloader
28+
repo: xenova/chat-downloader
2929
python: 3.8

CONTRIBUTING.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Types of Contributions
1515
Report Bugs
1616
~~~~~~~~~~~
1717
18-
Report bugs at https://github.com/xenova/chat_replay_downloader/issues.
18+
Report bugs at https://github.com/xenova/chat-downloader/issues.
1919
2020
If you are reporting a bug, please include:
2121
@@ -38,14 +38,14 @@ and "help wanted" is open to whoever wants to implement it.
3838
Write Documentation
3939
~~~~~~~~~~~~~~~~~~~
4040
41-
chat-replay-downloader could always use more documentation, whether as part of the
42-
official chat-replay-downloader docs, in docstrings, or even on the web in blog posts,
41+
chat-downloader could always use more documentation, whether as part of the
42+
official chat-downloader docs, in docstrings, or even on the web in blog posts,
4343
articles, and such.
4444
4545
Submit Feedback
4646
~~~~~~~~~~~~~~~
4747
48-
The best way to send feedback is to file an issue at https://github.com/xenova/chat_replay_downloader/issues.
48+
The best way to send feedback is to file an issue at https://github.com/xenova/chat-downloader/issues.
4949
5050
If you are proposing a feature:
5151
@@ -57,17 +57,17 @@ If you are proposing a feature:
5757
Get Started!
5858
------------
5959
60-
Ready to contribute? Here's how to set up `chat_replay_downloader` for local development.
60+
Ready to contribute? Here's how to set up `chat-downloader` for local development.
6161
62-
1. Fork the `chat_replay_downloader` repo on GitHub.
62+
1. Fork the `chat-downloader` repo on GitHub.
6363
2. Clone your fork locally::
6464
65-
$ git clone [email protected]:your_name_here/chat_replay_downloader.git
65+
$ git clone [email protected]:your_name_here/chat-downloader.git
6666
6767
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
6868
69-
$ mkvirtualenv chat_replay_downloader
70-
$ cd chat_replay_downloader/
69+
$ mkvirtualenv chat-downloader
70+
$ cd chat-downloader/
7171
$ python setup.py develop
7272
7373
4. Create a branch for local development::
@@ -79,7 +79,7 @@ Ready to contribute? Here's how to set up `chat_replay_downloader` for local dev
7979
5. When you're done making changes, check that your changes pass flake8 and the
8080
tests, including testing other Python versions with tox::
8181
82-
$ flake8 chat_replay_downloader tests
82+
$ flake8 chat-downloader tests
8383
$ python setup.py test or pytest
8484
$ tox
8585
@@ -103,15 +103,15 @@ Before you submit a pull request, check that it meets these guidelines:
103103
your new functionality into a function with a docstring, and add the
104104
feature to the list in README.rst.
105105
3. The pull request should work for Python 3.5, 3.6, 3.7 and 3.8, and for PyPy. Check
106-
https://travis-ci.com/xenova/chat_replay_downloader/pull_requests
106+
https://travis-ci.com/xenova/chat-downloader/pull_requests
107107
and make sure that the tests pass for all supported Python versions.
108108
109109
Tips
110110
----
111111
112112
To run a subset of tests::
113113
114-
$ pytest tests.test_chat_replay_downloader
114+
$ pytest tests.test_chat_downloader
115115
116116
117117
Deploying

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ clean-test: ## remove test and coverage artifacts
4949
rm -fr .pytest_cache
5050

5151
lint: ## check style with flake8
52-
flake8 chat_replay_downloader tests
52+
flake8 chat_downloader tests
5353

5454
test: ## run tests quickly with the default Python
5555
pytest
@@ -58,15 +58,15 @@ test-all: ## run tests on every Python version with tox
5858
tox
5959

6060
coverage: ## check code coverage quickly with the default Python
61-
coverage run --source chat_replay_downloader -m pytest
61+
coverage run --source chat_downloader -m pytest
6262
coverage report -m
6363
coverage html
6464
$(BROWSER) htmlcov/index.html
6565

6666
docs: ## generate Sphinx HTML documentation, including API docs
67-
rm -f docs/chat_replay_downloader.rst
67+
rm -f docs/chat_downloader.rst
6868
rm -f docs/modules.rst
69-
sphinx-apidoc -o docs/ chat_replay_downloader
69+
sphinx-apidoc -o docs/ chat_downloader
7070
$(MAKE) -C docs clean
7171
$(MAKE) -C docs html
7272
$(BROWSER) docs/_build/html/index.html

README.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,72 @@
11
# Chat Downloader
22
A simple tool used to retrieve chat messages from livestreams, videos, clips and past broadcasts. No authentication needed!
33

4-
[![Python](https://img.shields.io/pypi/pyversions/chat-replay-downloader)](https://pypi.org/project/chat-replay-downloader)
5-
[![PyPI version](https://img.shields.io/pypi/v/chat-replay-downloader.svg)](https://pypi.org/project/chat-replay-downloader)
6-
[![PyPI Downloads](https://img.shields.io/pypi/dm/chat-replay-downloader)](https://pypi.org/project/chat-replay-downloader)
7-
[![GitHub license](https://img.shields.io/github/license/xenova/chat-replay-downloader)](https://github.com/xenova/chat-replay-downloader/blob/master/LICENSE)
4+
[![Python](https://img.shields.io/pypi/pyversions/chat-downloader)](https://pypi.org/project/chat-downloader)
5+
[![PyPI version](https://img.shields.io/pypi/v/chat-downloader.svg)](https://pypi.org/project/chat-downloader)
6+
[![PyPI Downloads](https://img.shields.io/pypi/dm/chat-downloader)](https://pypi.org/project/chat-downloader)
7+
[![GitHub license](https://img.shields.io/github/license/xenova/chat-downloader)](https://github.com/xenova/chat-downloader/blob/master/LICENSE)
88

99

1010

1111
<!---
12-
[![GitHub issues](https://img.shields.io/github/issues/xenova/chat-replay-downloader)](https://badge.fury.io/py/chat-replay-downloader)
13-
[![GitHub forks](https://img.shields.io/github/forks/xenova/chat-replay-downloader)](https://badge.fury.io/py/chat-replay-downloader)
14-
[![GitHub stars](https://img.shields.io/github/stars/xenova/chat-replay-downloader)](https://badge.fury.io/py/chat-replay-downloader)
15-
[![Downloads](https://img.shields.io/github/downloads/xenova/chat-replay-downloader/total.svg)](https://github.com/xenova/chat-replay-downloader/releases)
12+
[![GitHub issues](https://img.shields.io/github/issues/xenova/chat-downloader)](https://badge.fury.io/py/chat-downloader)
13+
[![GitHub forks](https://img.shields.io/github/forks/xenova/chat-downloader)](https://badge.fury.io/py/chat-downloader)
14+
[![GitHub stars](https://img.shields.io/github/stars/xenova/chat-downloader)](https://badge.fury.io/py/chat-downloader)
15+
[![Downloads](https://img.shields.io/github/downloads/xenova/chat-downloader/total.svg)](https://github.com/xenova/chat-downloader/releases)
1616
-->
1717

1818
## Installation
1919
### Install using `pip`
2020
```
21-
pip install chat-replay-downloader
21+
pip install chat-downloader
2222
```
2323

2424
To update to the latest version, add the `--upgrade` flag to the above command.
2525
### Install using `git`
2626
```
27-
git clone https://github.com/xenova/chat-replay-downloader.git
28-
cd chat-replay-downloader
27+
git clone https://github.com/xenova/chat-downloader.git
28+
cd chat-downloader
2929
python setup.py install
3030
```
3131

3232
## Usage
3333

3434
### Python:
3535
```python
36-
from chat_replay_downloader import ChatDownloader
36+
from chat_downloader import ChatDownloader
3737

3838
url = 'https://www.youtube.com/watch?v=5qap5aO4i9A'
3939
chat = ChatDownloader().get_chat(url) # create a generator
4040
for message in chat: # iterate over messages
4141
print(chat.format(message)) # print the formatted message
4242
```
43-
For advanced python use-cases and examples, consult the [Python Wiki](https://github.com/xenova/chat-replay-downloader/wiki/Python-Documentation).
43+
For advanced python use-cases and examples, consult the [Python Wiki](https://github.com/xenova/chat-downloader/wiki/Python-Documentation).
4444

4545
### Command line:
4646
```
47-
chat_replay_downloader https://www.youtube.com/watch?v=5qap5aO4i9A
47+
chat_downloader https://www.youtube.com/watch?v=5qap5aO4i9A
4848
```
4949

50-
For advanced command line use-cases and examples, consult the [Command Line Wiki](https://github.com/xenova/chat-replay-downloader/wiki/Command-Line-Usage).
50+
For advanced command line use-cases and examples, consult the [Command Line Wiki](https://github.com/xenova/chat-downloader/wiki/Command-Line-Usage).
5151

5252

5353
## Issues
54-
Found a bug or have a suggestion? File an issue [here](https://github.com/xenova/chat-replay-downloader/issues/new). To assist the developers in fixing the issue, please follow the issue template (automatically generated when creating a new issue).
54+
Found a bug or have a suggestion? File an issue [here](https://github.com/xenova/chat-downloader/issues/new). To assist the developers in fixing the issue, please follow the issue template (automatically generated when creating a new issue).
5555

5656
## Contributing
5757
### Become a contributor
5858
#### Run as a developer
5959
To run the program as a developer, you do not need to build anything separately. Simply execute:
6060
```
61-
python -m chat_replay_downloader
61+
python -m chat_downloader
6262
```
6363
[work in progress]
6464

6565
#### Add support for a new site:
66-
1. [Fork](https://github.com/xenova/chat-replay-downloader/fork) this repository.
66+
1. [Fork](https://github.com/xenova/chat-downloader/fork) this repository.
6767
2. Clone the source code with:
6868

69-
git clone [email protected]:YOUR_GITHUB_USERNAME/chat-replay-downloader.git
69+
git clone [email protected]:YOUR_GITHUB_USERNAME/chat-downloader.git
7070
3. Start a new branch with:
7171

7272
cd youtube-dl
@@ -79,7 +79,7 @@ Note that this will not affect any output you write to files (using `--output`).
7979
For example:
8080

8181
```
82-
chat_replay_downloader https://www.youtube.com/watch?v=5qap5aO4i9A --testing
82+
chat_downloader https://www.youtube.com/watch?v=5qap5aO4i9A --testing
8383
```
8484

8585
Some extractors use undocumented endpoints and may and as a result, users may encounter items which will not be parsed correctly. Increased testing will improve functionality of the software for other users and is greatly appreciated.
@@ -90,7 +90,7 @@ Chat items are parsed into JSON objects (a.k.a. dictionaries) and follow this te
9090

9191
[work in progress]
9292

93-
For a more in-depth output template, consult the [Item Wiki](https://github.com/xenova/chat-replay-downloader/wiki/Item-Template).
93+
For a more in-depth output template, consult the [Item Wiki](https://github.com/xenova/chat-downloader/wiki/Item-Template).
9494

9595
## Supported sites:
9696
- YouTube.com - Livestreams, past broadcasts and premieres.

chat_downloader/__init__.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"""Top-level package for chat-downloader."""
2+
3+
__author__ = 'Joshua Lochner'
4+
__email__ = '[email protected]'
5+
__version__ = '0.0.1'
6+
__url__ = 'https://github.com/xenova/chat-downloader'
7+
8+
from .cli import main
9+
from .chat_downloader import ChatDownloader

chat_downloader/__main__.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import chat_downloader
2+
3+
if __name__ == '__main__':
4+
chat_downloader.main()

chat_replay_downloader/cli.py chat_downloader/cli.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Console script for chat_replay_downloader."""
1+
"""Console script for chat_downloader."""
22
import argparse
33
import sys
44
import os
@@ -10,8 +10,8 @@
1010
from docstring_parser import parse as doc_parse
1111
from requests.exceptions import RequestException
1212

13-
import chat_replay_downloader
14-
from .chat_replay_downloader import ChatDownloader
13+
import chat_downloader
14+
from .chat_downloader import ChatDownloader
1515
from .sites import BaseChatDownloader
1616
from .output.continuous_write import ContinuousWriter
1717

@@ -33,7 +33,7 @@ def main():
3333
formatter_class=argparse.RawTextHelpFormatter,
3434
)
3535

36-
parser.add_argument('--version', action='version', version=chat_replay_downloader.__version__)
36+
parser.add_argument('--version', action='version', version=chat_downloader.__version__)
3737

3838
# PROGRAM PARAMS
3939
parser.add_argument(
@@ -199,7 +199,7 @@ def try_parse_int(text):
199199
output_file = None
200200
try:
201201
log('debug', 'Python version: {}'.format(sys.version))
202-
log('debug', 'Program version: {}'.format(chat_replay_downloader.__version__))
202+
log('debug', 'Program version: {}'.format(chat_downloader.__version__))
203203

204204
chat = downloader.get_chat(**chat_params)
205205

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

chat_replay_downloader/__init__.py

-9
This file was deleted.

chat_replay_downloader/__main__.py

-4
This file was deleted.

docs/Makefile

-20
This file was deleted.

docs/authors.rst

-1
This file was deleted.

docs/chat_replay_downloader.formatting.rst

-21
This file was deleted.

docs/chat_replay_downloader.output.rst

-21
This file was deleted.

0 commit comments

Comments
 (0)