Comments (8)
That’s a great idea, I really like that! I am definitely down into expanding to different fantasy sports.
Also I have been meaning to make a dev branch where all PRs can be based on. That way multiple feature and bug fixes can be merged into dev and be a test branch of all changes. This would also allow better versioning on the main package.
from espn-api.
Interesting, that structure does look a lot simpler and will keep everything together. I will create a dev branch by the end of tonight so you can create your branch and PR off of that
from espn-api.
@bsmiller25 I plan on adding a couple changes to the core ff_espn_api this week and pushing out a new version. Then I will start updating package name, README/Wiki, and test for the new fantasy sports PR #73
from espn-api.
Can you set up the dev branch soon? I've got my basketball submodule about as developed as I want it so I'm ready to submit a pull request. It's a pretty significant reorganization of the package as a whole so I think it would be a good idea for you to request changes or make changes yourself on a dev branch before merging to master. Once the structure you want is finalized the README should be updated.
The basketball part is not nearly as well built out as what you have for football but it has the league with teams and players and the players have stats. I'm mostly interested in using this for analytics so I don't plan on doing much more. At least until fantasy baseball season starts (or I find a a new use case and want more features)!
from espn-api.
So I have been thinking a lot of how the structure would be with adding different sports. Having them all under one package could make it really tricky. A couple of things that come to mind is versioning for the different packages. If only one module updates having to update all of the packages version and then doing branching gets difficult.
My proposition and wanted to see what you think about this, is to break fb_espn_api into its own github page and PyPI package. With this I would take out the shared functionality between fantasy football and fantasy basket api and put it in its own package and repository as espn_api_util. This will make versioning and updating those packages a lot easier while still sharing the common api utils.
If you want to host the fb_espn_api on your own I could help/co work on it for the common api parts. Or if you want I could host it and have you co master contributor on it.
Thoughts?
from espn-api.
I think this structure is way to go:
espn-api
| -- setup.py
| -- README.md
| | espn-api
| | -- utils.py
| | -- football
| | | -- league.py
| | | -- etc
| | -- basketball
| | | -- league.py
| | | -- etc
| | -- baseball
| | | -- league.py
...
I don't think it makes versioning or branching more complicated. You wouldn't have to version the packages separately. Take a look at how numpy is structured with linalg, random, and other submodules and how their releases work. I think having separate espn-util, football, basketball, baseball, etc repos is too spread out.
from espn-api.
develop branch has been created! https://github.com/cwendt94/ff-espn-api/tree/develop
from espn-api.
Pull request #73 submitted!
from espn-api.
Related Issues (20)
- NFL position mapping incorrect HOT 5
- Team Names not correct HOT 2
- Unable to access league data for 2018 season HOT 1
- Teams' names not updated HOT 1
- League current_week field returns 0 HOT 8
- meaning of statistics keys HOT 3
- Fix Team Data Change Working? HOT 1
- Add Owner info to Team
- Pulling League Data Errors in new season 23-24 HOT 1
- 'location' in data json doesn't exist anymore. Fix is provided HOT 2
- ESPN API Updated Key Names for Team Name HOT 1
- KeyError: 'location' in Fantasy BBall H2H Categories HOT 2
- Add back functionality to pull owner names HOT 4
- Getting "json.decoder.JSONDecodeError: Unterminated string" starting after NFL week 6 HOT 4
- Add accepted trade activity to fantasy basketball activity list HOT 3
- Player/Pick projected bid amount HOT 5
- slot_position only returning "PG" HOT 1
- Unable to get projected score of games of final completed week of season HOT 1
- Issue with Add full owner info to team commit HOT 2
- League.previousSeasons no longer an attribute? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espn-api.