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

Extract GCP #160

Closed
stereobooster opened this issue Nov 27, 2022 · 5 comments · Fixed by #174
Closed

Extract GCP #160

stereobooster opened this issue Nov 27, 2022 · 5 comments · Fixed by #174
Labels
enhancement New feature or request
Milestone

Comments

@stereobooster
Copy link

Hi. Thanks for the project.

apparently it is possible to extract GCP from GTIN (even if it is variable length). Here is another library which does it https://github.com/enorganic/gtin/blob/master/scripts/update_gcp_prefix_format_list.py

Any chance to add this feature to your library?

@jodal
Copy link
Owner

jodal commented Nov 30, 2022

Thanks! If you're using Biip, I'd appreciate if you added your company or yourself to the lists of users!

Biip currently only supports getting the GS1 member organization prefix, indicating what country the GTIN was issued in: https://biip.readthedocs.io/en/stable/api/gtin/#biip.gtin.Gtin.prefix

I was not aware of the company prefix length data set's existence, but this looks like a very interesting addition to Biip. I'll probably have a go at adding it to an upcoming Biip 3.0 release soon.

@jodal jodal added this to the 3.0 milestone Nov 30, 2022
@jodal jodal added the enhancement New feature or request label Nov 30, 2022
@stereobooster
Copy link
Author

For now I just do some experiments with it, as soon as I start using it I will update the list

@stereobooster
Copy link
Author

Maybe this would be interesting for you. Just found that there is official (GS1) C library https://github.com/gs1/gs1-syntax-engine

@jodal
Copy link
Owner

jodal commented Dec 19, 2022

Biip 3.0.0 has now been released. It includes the changes discussed here, hopefully making Biip useful in your use case.

@stereobooster
Copy link
Author

Oh wow. That was fast

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants