cleanup and adaptive use #5
I’m not clear on why the python version requirement would be removed. I know that i had to upgrade my version of python for certain parts of the code (can’t specifically remember which) and it’s also generally best practice to establish a baseline version, so perhaps we can do a “>= 3.7“, or whatever the syntax is.
The main functional change in this PR appears to be updates to the constants in the Statements class for “interim” statements. Could you please add tests for these so that i have clear examples of what prompted this need and so we can be confident that the changes have any negative consequences? In initially developing those constants i recall that certain names didn’t actually correspond to the 10-q and 10-k reports that we’re concerned with, so i prefer we be safe.
Hi Christian,
Thanks for your interest in the project and for taking the time to contribute. I hadn’t really imagined that others would want contribute, hence the lack of contribution policy, development branch, automated testing and building, etc. So bear with me...
Firstly, good catch on the setup.py not packaging the data folder up. I wasn't familiar with MANIFEST.in, but it appears to be a fine choice to solve this issue as unfortunately I don't see a way for setuptools to just default to include everything under source control (would be my ideal solution for this simple project). I've added comments in-line with my remaining thoughts, please have a look.
For the extensions, I think it will be best if we create feature requests and work from there. Once this PR goes through I'll at least add a dev branch, contribution guidelines, a feature request template, and perhaps look into CI so that things are smoother going forward.
Thanks again!
Farhad
Ok, PR should be good to go now!
fixed
I also went ahead and added a minimal Dockerfile for this as well for a personal project.
Open to adding some more tooling like that?
Thanks @cdbattags! I see you removed the "interim" statements from filing.py...You had mentioned that there were some examples of companies that you came across that this library didn't work for - were you able to find those?
And yes, docker tooling is a nice idea. I guess you mean that you just added it locally though, right? Because I don't see it added here. Either way, we can update the README for that too to offer an alternative way of installing using just docker build && docker run.
@cdbattags just revisiting this PR...this one i'm not sure about. if you can find a case that doesn't have length 2 then i'd like to see it, otherwise i would actually prefer the runtime error here so that we're alerted to such cases.
DBX 2019 (don't remember which statement), it doesn't provide a unit, hence number are good as they are.
Thank you for all the work you did.
farhadab
cdbattags
Hi @farhadab,
Just wanted to go ahead and get this work-in-progress PR up.
Lemme know if you have any thoughts. I'd like to extend this primarily for EPS data.