Skip to content

Commit

Permalink
Bug fix at 2024-06-24T16:33:29+0800
Browse files Browse the repository at this point in the history
  • Loading branch information
miyuki-shirogane committed Jun 24, 2024
1 parent deaba24 commit 2c6d253
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 15 deletions.
22 changes: 21 additions & 1 deletion pistol_magazine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
from .self_made import DataMocker
from .self_made import ProviderField
from .provider import provider
from .data_exporter.csv_ex import CSVExporter
from .data_exporter.json_ex import JSONExporter
from .data_exporter.xml_ex import XMLExporter
from .data_exporter.db_ex import DBExporter
from .built_in_provider.cyclic_parameter import CyclicParameterProvider
from .built_in_provider.fixed_value import FixedValueProvider
from .built_in_provider.random_choice_from_list import RandomChoiceFromListProvider
from .built_in_provider.random_float_in_range import RandomFloatInRangeProvider
from .built_in_provider.incremental_value import IncrementalValueProvider

__all__ = [
'Datetime',
Expand All @@ -31,5 +40,16 @@
'DataMocker',
'provider',
'ProviderField',
'Bool'
'Bool',

'CSVExporter',
'JSONExporter',
'XMLExporter',
'DBExporter',

'CyclicParameterProvider',
'FixedValueProvider',
'RandomChoiceFromListProvider',
'RandomFloatInRangeProvider',
'IncrementalValueProvider',
]
5 changes: 0 additions & 5 deletions pistol_magazine/built_in_provider/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
from .cyclic_parameter import CyclicParameterProvider
from .fixed_value import FixedValueProvider
from .random_choice_from_list import RandomChoiceFromListProvider
from .random_float_in_range import RandomFloatInRangeProvider
from .incremental_value import IncrementalValueProvider
7 changes: 0 additions & 7 deletions pistol_magazine/data_exporter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
from .csv_ex import CSVExporter
from .json_ex import JSONExporter
from .xml_ex import XMLExporter
from .db_ex import DBExporter

__all__ = ['CSVExporter', 'JSONExporter', 'XMLExporter', 'DBExporter']

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def read_readme():

setup(
name='PistolMagazine',
version='0.6.0',
version='0.6.1',
description='A data mocking tool designed to help you generate realistic data for testing and development purposes.',
author='Ealyn',
author_email='miyuk1@126.com',
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data_export.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pistol_magazine.data_exporter import CSVExporter, JSONExporter, XMLExporter, DBExporter
from pistol_magazine import CSVExporter, JSONExporter, XMLExporter, DBExporter

data = [
{"name": "Alice", "age": 25, "city": "New York"},
Expand Down

0 comments on commit 2c6d253

Please sign in to comment.