Skip to content

Commit

Permalink
reanme library
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulineMauryL committed Aug 9, 2024
1 parent a821766 commit 9d24519
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 199 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Serialize and deserialize Smartnoise Synth constraints to and from JSON.
## Installation
Install with pip:
```python
pip install smarntoise_synth_logger
pip install smartnoise-synth-logger
```

## Example
Expand Down Expand Up @@ -58,14 +58,14 @@ constraints = {

## Serialise
```python
from ssynth_logger import serialise_constraints
from smartnoise_synth_logger import serialise_constraints

serialised_constraints = serialise_constraints(constraints)
```

## Deserialise
```python
from ssynth_logger import deserialise_constraints
from smartnoise_synth_logger import deserialise_constraints

deserialised_constraints = deserialise_constraints(serialised_constraints)
```
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
long_description = (this_directory / "README.md").read_text()

setup(
name="ssynth_logger",
name="smartnoise_synth_logger",
packages=find_packages(),
version="0.0.1",
version="0.0.2",
description="A logger wrapper for Smartnoise Synth Table Transformer",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
2 changes: 0 additions & 2 deletions ssynth_logger/__init__.py

This file was deleted.

23 changes: 0 additions & 23 deletions ssynth_logger/constants.py

This file was deleted.

91 changes: 0 additions & 91 deletions ssynth_logger/deserialise.py

This file was deleted.

76 changes: 0 additions & 76 deletions ssynth_logger/serialise.py

This file was deleted.

7 changes: 5 additions & 2 deletions tests/test_de_serialisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
OneHotEncoder,
StandardScaler,
)
from ssynth_logger import deserialise_constraints, serialise_constraints
from ssynth_logger.constants import SSYNTH
from smartnoise_synth_logger import (
deserialise_constraints,
serialise_constraints,
)
from smartnoise_synth_logger.constants import SSYNTH


def test_anon_serialize():
Expand Down

0 comments on commit 9d24519

Please sign in to comment.