+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
fivbvis/__pycache__/
tests/__pycache__/
tests/vcr_cassettes/
tests/tests/
tests/.coverage
example.py
request.txt

Expand Down
186 changes: 125 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# FIVB VIS Python Client
![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/claromes/fivbvis?include_prereleases)
![GitHub](https://img.shields.io/github/license/claromes/fivbvis)
![PyPI](https://img.shields.io/pypi/v/fivbvis)

Python client library to easily integrate with FIVB VIS Web Service public data.
Python client library to easily integrate with [FIVB VIS Web Service](https://www.fivb.org/VisSDK/VisWebService/#Introduction.html) public data.

Responses are formatted using JSON.

Expand All @@ -16,30 +15,139 @@ pip3 install fivbvis
```python
from fivbvis import VolleyMatch

vb = VolleyMatch()
vm = VolleyMatch()

print(vb.match(9211))
print(vm.match(9211))
```
```json
{
"data":{
"assistantScorerCountryCode":"None",
"assistantScorerFirstName":"None",
"assistantScorerLastName":"None",
"beginDateTimeUtc":"2018-10-07T04:25:00Z",
"buyTicketsUrl":"",
"city":"Nagoya",
"countryCode":"JP",
"countryName":"Japan",
"dateLocal":"2018-10-07",
...
"assistantScorerCountryCode":"None",
"assistantScorerFirstName":"None",
"assistantScorerLastName":"None",
"beginDateTimeUtc":"2018-10-07T04:25:00Z",
"buyTicketsUrl":"",
"city":"Nagoya",
"countryCode":"JP",
"countryName":"Japan",
"dateLocal":"2018-10-07",
"dateTimeLocal":"2018-10-07T13:25:00",
"dateTimeUtc":"2018-10-07T04:25:00Z",
"durationSet1":1320,
"durationSet2":1560,
"durationSet3":2520,
"durationSet4":1680,
"durationSet5":1080,
"durationSet6":"None",
"durationSet7":"None",
"durationTotal":8160,
"endDateTimeUtc":"2018-10-07T06:53:00Z",
"endTime":"15:53:00",
"format":1,
"fullDuration":8880,
"hall":"Nippongaishi Hall",
"hasLiveData":1,
"isFreeEntrance":0,
"isVtsAvailable":0,
"lineJudge1CountryCode":"None",
"lineJudge1FirstName":"None",
"lineJudge1LastName":"None",
"lineJudge2CountryCode":"None",
"lineJudge2FirstName":"None",
"lineJudge2LastName":"None",
"lineJudge3CountryCode":"None",
"lineJudge3FirstName":"None",
"lineJudge3LastName":"None",
"lineJudge4CountryCode":"None",
"lineJudge4FirstName":"",
"lineJudge4LastName":"None",
"liveScoreFromScoresheet":1,
"liveStreamUri":"https://welcome.volleyballworld.tv/",
"loserRank":0,
"matchPointsA":3,
"matchPointsB":2,
"matchResultText":"3-2",
"nbSets":5,
"nbSpectators":3000,
"no":9211,
"noConfederation":"None",
"noDocumentP2":256122695,
"noEvent":658,
"noInTournament":63,
"noPool":2421,
"noPoolRound":130,
"noReferee1":150966,
"noReferee2":153275,
"noReferee3":"None",
"noRefereeChallenge":150773,
"noRefereeReserve":151023,
"noTeamA":3675,
"noTeamB":3694,
"noTournament":1029,
"pointsTeamASet1":14,
"pointsTeamASet2":19,
"pointsTeamASet3":32,
"pointsTeamASet4":25,
"pointsTeamASet5":17,
"pointsTeamASet6":"None",
"pointsTeamASet7":"None",
"pointsTeamBSet1":25,
"pointsTeamBSet2":25,
"pointsTeamBSet3":30,
"pointsTeamBSet4":19,
"pointsTeamBSet5":15,
"pointsTeamBSet6":"None",
"pointsTeamBSet7":"None",
"poolCode":"E",
"poolName":"Pool E",
"poolOrder":5,
"poolRoundCode":"II",
"poolRoundName":"Second round",
"referee1FederationCode":"KOR",
"referee1Name":"Kang Joo-Hee",
"referee2FederationCode":"ITA",
"referee2Name":"Rapisarda Daniele",
"resultType":0,
"resultTypeText":"None",
"scheduleInfo":4,
"scorerCountryCode":"None",
"scorerFirstName":"None",
"scorerLastName":"None",
"season":"2018",
"setsResultsText":"(14-25, 19-25, 32-30, 25-19, 17-15)",
"status":25,
"statusText":"Result is official",
"teamACalculatedCode":"GER",
"teamACalculatedName":"Germany",
"teamACode":"GER",
"teamALiberoUniformColor":"Red",
"teamAName":"Germany",
"teamAShirtColor":"Black",
"teamAText":"GER",
"teamBCalculatedCode":"BRA",
"teamBCalculatedName":"Brazil",
"teamBCode":"BRA",
"teamBLiberoUniformColor":"Blue",
"teamBName":"Brazil",
"teamBShirtColor":"Yellow",
"teamBText":"BRA",
"teamCodeA":"GER",
"teamCodeB":"BRA",
"teamNameA":"Germany",
"teamNameB":"Brazil",
"timeLocal":"13:25:00",
"tournamentCode":"WWCH2018",
"winnerRank":0
}
}
```

## Docs
## [Documentation](https://claromes.github.io/fivbvis)

[Objects documentation](docs/DOCS.md)
## Requests Available

- Article
- VolleyMatch

## Development

Expand All @@ -48,47 +156,3 @@ $ `git clone git@github.com:claromes/fivbvis.git`
$ `cd fivbvis`

$ `pip3 install -r dev-requirements.txt`

## Requests

- [x] Article Object

- [ ] Beach Object

- [ ] Confederation Object

- [ ] Federation Object

- [ ] Image Object

- [ ] Match Object

- [ ] Phase Object

- [ ] Player Object

- [ ] Round Object

- [ ] Tournament Object

- [ ] VolleyClub Object

- [ ] VolleyLive Object

- [x] VolleyMatch Object

- [ ] VolleyPlayer Object

- [ ] VolleyPool Object

- [ ] VolleyRankingDefinition Object

- [ ] VolleyStatistic Object

- [ ] VolleyTeam Object

- [ ] VolleyTournament Object

- [ ] VolleyTransfer Object

[VIS Web Service Requests full list](https://www.fivb.org/VisSDK/VisWebService/RequestList.html)
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-r requirements.txt

pytest==7.2.0
pytest-cov==4.1.0
vcrpy==4.2.1
107 changes: 0 additions & 107 deletions docs/DOCS.md

This file was deleted.

Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载