-
Notifications
You must be signed in to change notification settings - Fork 408
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
Using Pyfa as backend for calculating a fit's stats #1212
Comments
Hi there, There is no external library that pyfa uses for it's calculations. Its engine is called You'll have to know some basic structure. There's two different databases - one for EVE data, and one for user data. EVE data is found in
Sample script:
output:
If you have any querstions about this stuff or how it works, please feel free to reach out to me on pyfa's Slack (invite: https://pyfainvite.azurewebsites.net/). it's best to chat about it realtime rather than go back and forth over github issue comments :) |
Wow, this is a top notch answer and way more than I asked for - I would have needed to look for how to do what you did eventually. You've truly saved me from hours of figuring out how it all works and I really appreciate it. Make sure this ends up in a wiki somehow, this is worthy of a page of its own. Thanks again. |
@dancodes thanks! That's a good point - I'll try to spruce up a wiki article on this :) |
There is a much easier way. Take a look at the tests and what I did for that. You literally just have to import and reference the DB object and it does all the work for you. |
Or you can do that. It's basically doing the same thing our old all encompassing importer did that we removed during the refactor ( @dancodes The method the tests use save on import statements to get to the classes. Personally I feel if you're looking to integrate pyfa's engine into another application, importing the things that you need when needed directly from |
Closing this as it was mostly a discussion thread, trying to clean up some of the older issues. Thanks for the inquiry @dancodes! |
Hello, question here:
I'd like to make my own command line application that can calculate a ship's stats (say, DPS) given a fit.
I'm not looking for a completely modular library, just some guidance in Pyfa's current codebase so I can cherry pick what I want, even if it involves having the whole repository on my working folder.
Thanks!
The text was updated successfully, but these errors were encountered: