-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from ropable/master
Drop cddp application, implement import_cpt_cadastre_scdb function
- Loading branch information
Showing
13 changed files
with
513 additions
and
441 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
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,14 @@ | ||
[tool.poetry] | ||
name = "caddy" | ||
version = "2.2.12" | ||
version = "2.3.0" | ||
description = "Lightweight application service to harvest and index the cadastre dataset, and expose an API endpoint to allow full-text searching of addresses." | ||
authors = ["Ashley Felton <[email protected]>"] | ||
license = "Apache License 2.0" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10" | ||
django = "3.2.20" | ||
psycopg2 = "2.9.5" | ||
django = "3.2.21" | ||
psycopg2 = "2.9.6" | ||
python-dotenv = "1.0.0" | ||
dj-database-url = "1.0.0" | ||
SQLAlchemy = "2.0.20" | ||
|
@@ -20,6 +20,7 @@ bottle = "0.12.25" | |
gunicorn = "21.2.0" | ||
mixer = "7.2.2" | ||
WebTest = "3.0.0" | ||
fudgeo = "0.7.0" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
ipython = "^8.14.0" | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from django.core.management.base import BaseCommand, CommandError | ||
import logging | ||
from shack.utils import import_cpt_cadastre_scdb | ||
|
||
logger = logging.getLogger('caddy') | ||
|
||
|
||
class Command(BaseCommand): | ||
help = 'Undertakes harvest of address data from CPT_CADASTRE_SCDB.gpkg' | ||
|
||
def add_arguments(self, parser): | ||
parser.add_argument( | ||
'--path', action='store', dest='path', default=None, | ||
help='File path to the Geopackage file', | ||
) | ||
|
||
def handle(self, *args, **options): | ||
if options['path']: | ||
path = options['path'] | ||
else: | ||
path = None | ||
|
||
logger.info('Starting harvest of cadastre addresses') | ||
import_cpt_cadastre_scdb(path) | ||
self.stdout.write('Finished harvest of cadastre addresses') | ||
|
||
return |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.