Skip to content

Commit

Permalink
Merge pull request #101 from z3c0/test (v1.0.0)
Browse files Browse the repository at this point in the history
v1.0.0
  • Loading branch information
z3c0 authored Nov 20, 2020
2 parents da4d5d9 + 04cbe69 commit abbdcd3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 18,902 deletions.
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ Interested? Jump to the [samples](#tutorial) below to learn how to set up Vistos
- [.govinfo](#congress_govinfo)

- [.members](#congress_members)

1. [CongressBills](#congress_bills)

- [.load()](#congress_bills_load)

1. [search_bioguide_members()](#search-bg)

Expand Down Expand Up @@ -154,7 +158,7 @@ The `CongressMember` class exists for querying data from the perspective of memb

#### `.load()` <a name="member_load"></a>

The `load` method manually load the datasets specified when instantiating `CongressMember`
The `load` method manually loads the datasets specified when instantiating `CongressMember`

``` python
member = v.CongressMember('P000587', load_immediately=False)
Expand All @@ -177,6 +181,8 @@ member = v.CongressMember('K000105', GOVINFO_API_KEY)
print(member.govinfo['title'])
```

Output:

``` cmd
Senator Edward M. Kennedy, Biography
```
Expand Down Expand Up @@ -283,6 +289,8 @@ c = v.Congress(116)
print(c.bioguide)
```

Output:

``` cmd
{"members": [{ .. }], "congress_number": 116, "start_year": 2019, "end_year": 2021}
```
Expand All @@ -300,12 +308,34 @@ c = v.Congress(116)
print(c.members[0].bioguide_id)
```

Output:

``` cmd
S001165
```

[Return to top](#table-of-contents)

***
### `CongressBills` <a name="congress_bills"></a>

`CongressBills` is a `list`-based object for querying the bills for a single congress. This is in contrast to the `Congress` object, which will attempt to download member data first.

``` python
congress_bills = v.CongressBills(105)
print(len(congress_bills))
```

Output:

``` cmd
13126
```
#### `.load()` <a name="congress_bills_load"></a>

The `load` method manually loads the dataset specified when instantiating `CongressBills`


***

### `search_bioguide_members(first_name: str, last_name: str, position: str, party: str, state: str, congress: int)` <a name="search-bg"></a>
Expand Down
2 changes: 1 addition & 1 deletion vistos/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.72
1.0.0
Loading

0 comments on commit abbdcd3

Please sign in to comment.