Skip to content

Commit 450ce83

Browse files
committed
🚚 Rename to jsonfilelogger
1 parent cebc45e commit 450ce83

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# 📖 A Python json-logger
1+
# 📖 A Python json-filelogger
22

3-
![Lint code and run tests](https://github.com/ManuDeBuck/python-jsonlogger/workflows/Lint%20code%20and%20run%20tests/badge.svg)
3+
![Lint code and run tests](https://github.com/ManuDeBuck/python-json-filelogger/workflows/Lint%20code%20and%20run%20tests/badge.svg)
44
[![pypi](https://img.shields.io/pypi/v/jsonlogger?color=%234d84f5&style=flat-square)](https://pypi.org/project/jsonlogger)
55

66
A simple way to log data to json-files from within your code.
@@ -10,15 +10,15 @@ A simple way to log data to json-files from within your code.
1010
You can use the python package manager (`pip`) to install the file-logger:
1111

1212
```bash
13-
pip install jsonlogger
13+
pip install jsonfilelogger
1414
```
1515

1616
## Usage
1717

1818
Create a `LogWriter`:
1919

2020
```python
21-
from jsonlogger.logger import LogWriter
21+
from jsonfilelogger.logger import LogWriter
2222

2323
writer = LogWriter(folder="./", filename="log.json", threshold=10)
2424
```
@@ -37,7 +37,7 @@ writer.log({"key_int": 1,
3737
Create a `LogReader`:
3838

3939
```python
40-
from jsonlogger.logger import LogReader
40+
from jsonfilelogger.logger import LogReader
4141

4242
reader = LogReader(folder="./", filename="log.json")
4343
```
@@ -66,7 +66,7 @@ During training one want's to keep an eye on the performance of the progress. To
6666
In another process (e.g. in another Jupyter notebook) it is then possible to read in the data and make amazing visualisations (yay, visualisations!) of how your breakthrough model is performing...
6767

6868
```python
69-
from jsonlogger.logger import LogWriter
69+
from jsonfilelogger.logger import LogWriter
7070

7171
writer = LogWriter.with_datetime(folder="./", threshold=10)
7272

@@ -83,7 +83,7 @@ writer.flush()
8383
```
8484

8585
```python
86-
from jsonlogger.logger import LogReader
86+
from jsonfilelogger.logger import LogReader
8787
import glob
8888

8989
logs_files = sorted(glob.glob("./[0-9]*.json"))
File renamed without changes.
File renamed without changes.

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
long_description = fh.read()
55

66
setuptools.setup(
7-
name="jsonlogger",
7+
name="jsonfilelogger",
88
version="0.0.1",
99
author="Manu De Buck",
1010
author_email="manu@mdebuck.org",
11-
description="A simple json logger for Python",
11+
description="A simple json file logger for Python",
1212
long_description=long_description,
1313
long_description_content_type="text/markdown",
14-
url="https://github.com/ManuDeBuck/jsonlogger",
14+
url="https://github.com/ManuDeBuck/python-json-filelogger",
1515
packages=setuptools.find_packages(),
1616
classifiers=[
1717
"Programming Language :: Python :: 3",

tests/test_logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import pytest
33
import glob
44

5-
from jsonlogger.logger import LogWriter, LogReader
5+
from jsonfilelogger.logger import LogWriter, LogReader
66

77

88
def test_writer_and_reader():

0 commit comments

Comments
 (0)