Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,37 @@ Easily **custom(add/replace)** `LogRecord` attribute, e.g. in `Flask` web projec



## Installation
## Contributing

jsonformatter is available on PyPI.
Use pip to install:
Download source code
```shell
$ git clone https://github.com/MyColorfulDays/jsonformatter.git
$ cd jsonformatter
$ pip install -e .
```

Run tests
```shell
$ pip install jsonformatter
$ python -m unittest tests/test.py
$ python -m unittest tests/test_windows.py
```
or:

Build
```shell
$ git clone https://github.com/MyColorfulDays/jsonformatter.git
$ cd jsonformatter
$ python setup.py install
$ pip install build
$ python -m build
```


## Installation

jsonformatter is available on PyPI.
Use pip to install:

```shell
$ pip install jsonformatter
```


## Basic Usage

Expand Down
29 changes: 29 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[build-system]
requires = ["pdm-pep517>=1.1.2"]
build-backend = "pdm.pep517.api"

[project]
name = "jsonformatter"
version = "0.3.3"
description = 'Python log in json format.'
readme = "README.md"
license = "BSD License"
license-files.paths = [
"LICENSE",
]
classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Utilities',
]
authors = [
{ name = "MyColorfulDays", email = "[email protected]" },
]
urls = { Homepage = "https://github.com/MyColorfulDays/jsonformatter.git" }
requires-python = ">=2.7"
dependencies = []
54 changes: 0 additions & 54 deletions setup.py

This file was deleted.

29 changes: 13 additions & 16 deletions jsonformatter/__init__.py → src/jsonformatter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
File: jsonformatter.py
Author: Me
Email: [email protected]
Github: https://github.com/yourname
Description: jsonformatter.py
"""
from .jsonformatter import JsonFormatter, basicConfig

__all__ = ['JsonFormatter', 'basicConfig']

version_info = (0, 3, 2)
version = '.'.join(str(v) for v in version_info)
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
File: jsonformatter.py
Author: Me
Email: [email protected]
Github: https://github.com/yourname
Description: jsonformatter.py
"""
from .jsonformatter import JsonFormatter, basicConfig

__all__ = ['JsonFormatter', 'basicConfig']
Loading