-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
401 additions
and
1,952 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
[settings] | ||
line_length=120 | ||
multi_line_output=0 | ||
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,PGA,LOCALFOLDER | ||
default_section=THIRDPARTY | ||
known_pga=pganonymize | ||
no_lines_before=LOCALFOLDER | ||
combine_as_imports = true | ||
include_trailing_comma = true | ||
line_length = 120 | ||
multi_line_output = 5 | ||
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,PGA,LOCALFOLDER | ||
default_section = THIRDPARTY | ||
known_pga = pganonymize | ||
no_lines_before = LOCALFOLDER | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,18 +22,11 @@ version: | |
$ git clone [email protected]:rheinwerk-verlag/postgresql-anonymizer.git | ||
$ cd postgresql-anonymizer | ||
We are using `poetry`_ for development, you may need to install it first: | ||
For the development use a virtualenv or install the requirements directly: | ||
|
||
.. code-block:: sh | ||
$ sudo pip install poetry | ||
Now you can install all development requirements and activate the virtualenv: | ||
|
||
.. code-block:: sh | ||
$ poetry install | ||
$ poetry shell | ||
$ sudo pip install -r requirements.txt | ||
Coding style | ||
------------ | ||
|
@@ -54,7 +47,6 @@ Before creating a pull request make sure to check: | |
|
||
.. _issue: https://github.com/rheinwerk-verlag/postgresql-anonymizer/issues | ||
.. _new issue: https://github.com/rheinwerk-verlag/postgresql-anonymizer/issues/new | ||
.. _poetry: https://python-poetry.org/ | ||
.. _EditorConfig: https://editorconfig.org/ | ||
.. _tests: https://github.com/rheinwerk-verlag/postgresql-anonymizer/tree/development/tests | ||
.. _Sphinx documentation: https://github.com/rheinwerk-verlag/postgresql-anonymizer/tree/development/docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ anonymization. The tool requires a direct PostgreSQL connection to perform the a | |
|
||
|python| |license| |pypi| |downloads| |build| |health| | ||
|
||
.. image:: docs/_static/demo.gif | ||
|
||
.. contents:: | ||
|
||
Features | ||
|
@@ -31,6 +33,8 @@ Features | |
+----------------+----------------------+-------------------------+----------------------------------+ | ||
| ``password`` | dsf82hFxcM | ``mask`` | XXXXXXXXXX | | ||
+----------------+----------------------+-------------------------+----------------------------------+ | ||
| ``credit_card``| 1234-567-890 | ``partial_mask`` | 1??????????0 | | ||
+----------------+----------------------+-------------------------+----------------------------------+ | ||
| ``email`` | [email protected] | ``md5`` | 0cba00ca3da1b283a57287bcceb17e35 | | ||
+----------------+----------------------+-------------------------+----------------------------------+ | ||
| ``email`` | [email protected] | ``faker.unique.email`` | [email protected] | | ||
|
@@ -156,7 +160,7 @@ After that you can pass a schema file to the container, using Docker volumes, an | |
.. _uuid4: https://www.postgresql.org/docs/current/datatype-uuid.html | ||
.. _documentation: https://python-postgresql-anonymizer.readthedocs.io/en/latest/ | ||
.. _documentation: https://pganonymize.readthedocs.io/en/latest/ | ||
.. _schema documentation: https://python-postgresql-anonymizer.readthedocs.io/en/latest/schema.html | ||
.. _YAML sample schema: https://github.com/rheinwerk-verlag/pganonymize/blob/master/sample_schema.yml | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
Deploy | ||
====== | ||
|
||
To create a new release you will have to install ``twine`` first:: | ||
A new release (PyPi package) will be created automatically if a tag was created using `Github actions`_. If the release | ||
has to be uploaded manually, you will have to install ``twine`` first: | ||
|
||
.. code-block:: bash | ||
$ pip install twine | ||
Then you have to create a new distribution file:: | ||
Then you have to create a new distribution file: | ||
|
||
.. code-block:: bash | ||
$ make dist | ||
Finally you can upload the file to PyPi:: | ||
Finally you can upload the file to PyPi: | ||
|
||
.. code-block:: bash | ||
$ twine upload dist/* | ||
.. _Github actions: https://github.com/rheinwerk-verlag/pganonymize/actions |
Oops, something went wrong.