Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify handling of project directory for Nominatim library #3525

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented Aug 26, 2024

This allows library users, when initialising a Nominatim[Async]API object, to hand in a simple string with the filename (instead of a Path object) or simply leave out the project directory completely.

Most of the files stored in the project directory are not really necessary at query time. So running the library without a project directory is entirely reasonable. Pretty much all the unit tests run in project-dir-less mode. You can still change settings like the database DSN through environment variables.

@lonvia lonvia merged commit 086116b into osm-search:master Aug 26, 2024
11 checks passed
@lonvia lonvia deleted the project-dir-less-library branch August 26, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant