All Projects → OpenGovAus → ausbills

OpenGovAus / ausbills

Licence: MIT License
🇦🇺 This is a package for obtaining parliament bills for Australian governments.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ausbills

congresstweets
Datasets of the daily Twitter output of Congress.
Stars: ✭ 76 (+216.67%)
Mutual labels:  house, senate
pipsalabim
An assistant to guess your pip dependencies from your code, without using a requirements file.
Stars: ✭ 15 (-37.5%)
Mutual labels:  pip
rfc-bibtex
A command line tool that creates bibtex entries for IETF RFCs and Internet Drafts.
Stars: ✭ 43 (+79.17%)
Mutual labels:  pip
pip upgrade outdated
Install outdated python packages.
Stars: ✭ 62 (+158.33%)
Mutual labels:  pip
us-house
117th United States House of Representatives - Contact Information, including: Phone Number, Mailing Address, Official Website, Twitter & Facebook Accounts.
Stars: ✭ 31 (+29.17%)
Mutual labels:  federal-government
wuhan-house-knowledge
武汉购房须知,购房经验知识分享
Stars: ✭ 68 (+183.33%)
Mutual labels:  house
MixingBear
Package for automatic beat-mixing of music files in Python 🐻🎚
Stars: ✭ 73 (+204.17%)
Mutual labels:  pip
username
😺 Get the current user name
Stars: ✭ 13 (-45.83%)
Mutual labels:  pip
pip-date
A simple CLI tool to show the installation/modification times of all your pip packages
Stars: ✭ 21 (-12.5%)
Mutual labels:  pip
asymmetric
Ridiculously fast and easy module-to-API transformations. Learn in minutes, implement in seconds. Batteries included.
Stars: ✭ 35 (+45.83%)
Mutual labels:  pip
TyStrings
strings file tool for iOS / macOS developers
Stars: ✭ 15 (-37.5%)
Mutual labels:  pip
cyclonedx-python
Creates CycloneDX Software Bill of Materials (SBOM) from Python projects and environments.
Stars: ✭ 78 (+225%)
Mutual labels:  pip
TensorFlow-Raspberry-Pi 64-bit
TensorFlow installation wheels for Raspberry Pi 64 OS
Stars: ✭ 27 (+12.5%)
Mutual labels:  pip
rules poetry
Bazel rules that use Poetry for Python package management
Stars: ✭ 40 (+66.67%)
Mutual labels:  pip
ugo-compiler-book
📚 µGo语言实现(从头开发一个迷你Go语言编译器)[Go版本+Rust版本]
Stars: ✭ 996 (+4050%)
Mutual labels:  wa
auspost-api-php
Australia Post API client library for PHP
Stars: ✭ 33 (+37.5%)
Mutual labels:  australia
project
☕️ Create node, rust, python or ruby project locally and on github (private or public)
Stars: ✭ 19 (-20.83%)
Mutual labels:  pip
rotten tomatoes client
Authless Client for Rotten Tomatoes
Stars: ✭ 16 (-33.33%)
Mutual labels:  pip
blender pip
A Blender addon for managing Python modules inside Blender with PIP
Stars: ✭ 26 (+8.33%)
Mutual labels:  pip
v-pip
🖼 Tiny vue wrapper for supporting native picture-in-picture mode.
Stars: ✭ 30 (+25%)
Mutual labels:  pip

Aus Bills

🇦🇺 This is a package is for obtaining parliament bills for Australian governments.

Install via pip3

pip3 install ausbills

Usage

All parliaments' extractors must use the same output template, which can be found here.

Most parliaments host their bills online in 2 forms:

  1. A table with a small amount of data about each bill

    ACT bill list

  2. Individual pages with all the info for a given bill.

    ACT bill

ausbills gives you access to all of this information.

To get all the current bills from a parliament, follow this template. The ACT parliament is used here for example purposes, all parliaments follow the same rules:

# First, we'll import the functions we need:
from ausbills.parliament.act import get_bills_metadata, get_bill

get_bills_metadata is the function which returns the list of bills with whatever metadata is present on the list web page.

# Let's print out the list of current bills in the ACT:
print(get_bills_metadata())

This is nice, but we can see from the previous screenshots that there is more data that can be obtained, which can be done by using the get_bill function's dict or JSON return functions:

# Get the full metadata from a random ACT bill:
import random

random_bill = random.choice(get_bills_metadata())

print(get_bill(random_bill).asDict())

We could construct a JSON structure for all the bills in the list with all their metadata like ths:

import json

all_bills = get_bills_metadata()
bill_meta_list = [get_bill(_bill).asDict() for _bill in all_bills]

print(json.dumps(bill_meta_list, indent=2))

See this example for an implementation of this demo for the WA parliament.


Contributing

Read CONTRIBUTING.md

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].