Skip to content

Commit

Permalink
Attempt to merge Renae/Kevin structures
Browse files Browse the repository at this point in the history
This is an attempt to merge Renae's and Kevin's package structures.
Some notes:

  * General structure split into a client (IpumsApiClient) and payloads
    (BaseExtract)
  * Subclasses of `BaseExtract` indicate which collection they reflect
    (currently only have a `CpsExtract` example based on Renae's
    example)
  * Provide an `OtherExtract` that allows for non-yet-supported APIs
  * Provide an example of submit-and-download workflow in the CLI
  • Loading branch information
khwilson committed May 7, 2021
1 parent e3b1c0a commit 6ad6256
Show file tree
Hide file tree
Showing 12 changed files with 553 additions and 172 deletions.
42 changes: 21 additions & 21 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pytest = "^6.2.3"
python-dotenv = "^0.17.0"

[tool.poetry.scripts]
ipums = "ipumspy.cli:cli"
ipums = "ipumspy.cli:ipums_group"

[tool.isort]
multi_line_output = 3
Expand Down
3 changes: 3 additions & 0 deletions src/ipumspy/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
"""
Convenience imports for ipumspy
"""
from .api import *
6 changes: 5 additions & 1 deletion src/ipumspy/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .core import IpumsApi
"""
Convenience imports from api
"""
from .core import IpumsApiClient
from .exceptions import *
from .extract import *
Loading

0 comments on commit 6ad6256

Please sign in to comment.