ebroecker / pyreqif Goto Github PK
View Code? Open in Web Editor NEWshould be a python implementation of reqif-format (import/export)
License: BSD 2-Clause "Simplified" License
should be a python implementation of reqif-format (import/export)
License: BSD 2-Clause "Simplified" License
I plan to read in a reqif
file with your parser and then edit it accordingly with additional information. The issue I came across is that the `ATTRIBUTE-DEFINITION-DATE' and its datatype conter parts are not defined, e.g;
Line 180 in ce9dd62
Line 219 in ce9dd62
Do you plan to integrate them? Or can you give me a hint where I need to work to integrate them?
I have tried to just adapt the if statements where the checks are conducted (see above) and have changed the dicts
Line 42 in ce9dd62
I am getting the follwing error whenver try to load a .reqif file
\rif.py", line 348, in load
values[value['attributeRef']] = reqif2py(value)
KeyError: 'attributeRef'
myDoc = pyreqif.reqif.load('a.reqif')
That's a nice module and it works fine.
Anyway the requirements hierarchy is lost. All items are at the same level.
Is there any way to keep the ReqIf hierarchy ?
For EXCEL to REQIF validation, FormalMind Reqif Studio seems to be tolerant to errors. Others like DoorScope or ReqEdit or DOORS are not so permissive.
However, there is a ReqIf validator in ReqIf Studio that allows to detect the same errors as ReqEdit / DoorScope / DOORS import:
Converting this XLSX to REQIF, import the generated REQIF in ReqIf Studio and apply the validator leads to multiple errrors that prevent the file to being imported to other tools.
Requirement seems misspelled in multiple locations as reqirement.
Hi,
thanks a lot for the library! It is really helpful for me. But I have a problem about the output reqif file, in which there is no information about "LONG-NAME" in every line, but only "IDENTIFIER" and "LAST-CHANGE". Could you please tell me how to add the "LONG-NAME" information in each line? Thanks in advance!
Best wishes
Hi,
thanks for creating the lib - i really like it. I use it currently to convert xlsx to reqif. I tried to read the generated files in the ALM solution here, but it bring me errors for parsing the date format.
current implementation generates the following format: 2021-02-10T13:20:04.820391
But as described here in the ReqIF standard (https://www.omg.org/spec/ReqIF/1.2/PDF) and here (http://www.w3.org/TR/xmlschema-2/#isoformats) microseconds are not allowed.
as a temporary workaround I change every occurence in create.py
from: lastChange=datetime.datetime.today().isoformat()
to: datetime.datetime.today().isoformat("T","seconds")
After this change I was able to import the ReqIF, not the ReqIFz, but this is maybe another story.
I think the correct solution would be to use the UTC time as calcualted to my local time? Maybe this issue can be fixed together with: 24
Thanks in advance
At the moment, example.py has a file path to Spec.reqif hardcoded. It would be interesting for people trying out the library to make example.py runnable for everyone
When I try to import xlsx as follows (after installing through pip):
from pyreqif import xlsx as xml_exporter
I get the following warning:
ModuleNotFoundError: No module named 'extractOleData'
I managed to fix it by using a relative import in xlsx.py, as follows:
from . import extractOleData
Trying to run the following command
python xlsx2reqif.py "Trial Quality ReqIF download.xlsx"
ERROR:
C:\Temp\pyreqif>python xlsx2reqif.py "Trial Quality ReqIF download.xlsx"
Traceback (most recent call last):
File "xlsx2reqif.py", line 96, in
pyreqif.create.addReqType("some_requirement_type_id", "requirement Type", "reqtype_for" + col.replace(" ", ""),
AttributeError: 'NoneType' object has no attribute 'replace'
TEST_List_and_CheckBoxes_DataTypes.zip
The attached file contains one column with a list datatype and one column with a check box datatype:
RIF lists are converted to pure text in the Excel file and check box is converted to True / False.
Is it possible to preserve the datatypes during conversion.
If yes, should be also applied to the reverse conversion XLSX to REQIF.
Crashes in xlsx2reqif.py / line 71 : worksheet object has no attribute max_column.
Hi,
I am rather new to python and this platform.
I don't know how to use the Code of the xlsx2reqif programm. Do I have to install a special environment or any further packages to use it. I didn't find any description about that.
Thanks for your help,
Martin
Hello,
first of all thank you for this nice tool, it saves me a lot of time.
When i install release 0.6 via pip i don't get the export tools for example xlsx2reqif.py
is missing. Is this behavior intended?
Best regards,
Philipp
D:\pyreqif-py3>python xlsx2reqif.py jira1.xlsx
{'IDENTIFIER': '_doc_type_ref', 'LAST-CHANGE': '2021-02-15T17:56:38.169367', 'LONG-NAME': 'doc_type'}
D:\pyreqif-py3>
"jira1.reqifz" file is created. Unzip it and check open jira1.reqif in Notepad++. The record with "ACDS-1" is missing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.