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

is it possible to expose the package data? #45

Open
dfguerrerom opened this issue Oct 9, 2023 · 1 comment
Open

is it possible to expose the package data? #45

dfguerrerom opened this issue Oct 9, 2023 · 1 comment

Comments

@dfguerrerom
Copy link

dfguerrerom commented Oct 9, 2023

one of the tools in @sepal-contrib was using a previous implementation of sepal_ui where the gaul_database was exposed, now that it has been removed in favor to the pygaul package, there's no way to directly access to this file.

Would it make sense to expose the database as a dataframe?, for example:

from pygaul.data import gaul_dadtabase

My current workaround imports the file using pkgs_resources:

resource_path = "pygaul/data/gaul_database.parquet"
content = pkg_resources.resource_filename("pygaul", resource_path)
@12rambau
Copy link
Member

I'm reluctant to expose the database path and think whatever I do will look exactly like your workaround. That being said, would it be possible to use AdmNames instead? it's very fast to run and gives you all the information you would find in the database right ?

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

No branches or pull requests

2 participants