Skip to content

Commit

Permalink
pacakge specification
Browse files Browse the repository at this point in the history
  • Loading branch information
artkulak committed Dec 21, 2021
1 parent 723d67e commit 58d04e8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions anonympy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
'''
Package for data anonymization of different data types
such as tabular, text, images and sound.
'''

__version__ = "0.1.1"

# Check if all dependencies have been installed

hard_dependencies = ("faker", "cape_privacy", "pandas", "numpy")
missing_dependencies = []

for dependency in hard_dependencies:
try:
__import__(dependency)
except ImportError as e:
missing_dependencies.append(f"{dependency}: {e}")

if missing_dependencies:
raise ImportError(
"Unable to import required dependencies:\n" + "\n".join(missing_dependencies)
)
del hard_dependencies, dependency, missing_dependencies


from anonympy import pandas
from anonympy import images
from anonympy import sound
from anonympy import text

__all__ = ["pandas", "tabular", "sound", "text"]

0 comments on commit 58d04e8

Please sign in to comment.