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

adapt example on PyPi.org #148

Closed
laiki opened this issue Sep 11, 2023 · 2 comments
Closed

adapt example on PyPi.org #148

laiki opened this issue Sep 11, 2023 · 2 comments

Comments

@laiki
Copy link

laiki commented Sep 11, 2023

The example code on Pypi.org, handling regifz files isn't working on Python3.10 as the iterator on the dictionary used so far is returning a string.
Please adapt the line
for reqif_bundle in reqifz_bundle.reqif_bundles:

to be
for key in reqifz_bundle.reqif_bundles.keys():

as well as
for attachment in reqifz_bundle.attachments:
to be
for key, attachment in reqifz_bundle.attachments.items():

or similar

stanislaw added a commit that referenced this issue Sep 11, 2023
Also add three basic examples of using reqif as a library

Closes #148
@stanislaw
Copy link
Contributor

Thanks for reporting this. I have just pushed an update in the README file. When I release a new Pip in a few days, the PyPI example will also get updated.

I have started creating the basic examples of how the reqif library can be scripted with Python. Here are they: https://github.com/strictdoc-project/reqif/tree/main/tests/integration/examples.

Let me know which examples would you like to see and also, please open your other issues if you still have difficulties when working with the library.

@laiki
Copy link
Author

laiki commented Sep 12, 2023 via email

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