-
Notifications
You must be signed in to change notification settings - Fork 39
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
API Endpoint for uploading CSV file #17
Comments
Hi @nishant-nayak. There isn't an API to upload bulk data, but there are APIs to insert and manage individual entries and definitions. What is your usecase? To integrate with a system to continuously add data (the entry/definition APIs are sufficient for that) or to continuously add large datasets (which is typically unlikely). An API for CSV bulk load isn't ideal because:
Dictionaries typically do not get frequent bulk loads of data. It's almost always one off, or rare, and for that, CLI is sufficient. |
Hi @knadh , the use case that we were looking at is to add large datasets to our dictionary. As you mentioned, it won't be a frequent operation so it should be doable with just the CLI. We have a similar upload feature on another application where we do implement the in-memory blob and status of a queued file using Django, but I believe with the glossary it may not be necessary. Thanks for the clarification! |
I've implemented an asynchronous CSV->DB import system in another Go project where frequent bulk uploads are a necessity, but had decided not to bring that complexity into dictpress because of the reasons mentioned above; dictionaries seldom need continuous bulk imports. Please do let me know if you need any help using dictpress in the glossary project. Excited to see it! |
Is there an API endpoint to POST a
.csv
file to insert it into the database? Currently the only documented methods are CLI based.As part of the National Language Translation Mission, the team at AI4Bhārat is developing an Indic language glossary to help translators and annotators in the translation of domain-specific text. We are looking to use dictpress as an open-source solution for this task, and the API endpoint to upload a dataset would be a requirement for the same.
The text was updated successfully, but these errors were encountered: