Monitor internet data usage to avoid overage charges
Project description
Americansouth
Motivation: Monitor internet data usage to avoid unexpected overage charges from Astound.
Usage
The tool processes data usage information from a JSON file in this format:
[
{
"date": "2024-11-13",
"amount": 79.13,
"amountUnits": "GB",
"total": 400,
"totalUnits": "GB",
"overage": 0,
"overageUnits": "GB",
"scrapedAt": "2024-11-13T06:17:28.611Z"
},
{
"date": "2024-11-13",
"amount": 79.13,
"amountUnits": "GB",
"total": 400,
"totalUnits": "GB",
"overage": 0,
"overageUnits": "GB",
"scrapedAt": "2024-11-13T06:41:24.588Z"
}
]
Run the script by passing the JSON file:
americansouth data.json
Example output:
DAILY USED DAILY BUDGET TOTAL USED MONTHLY BUDGET TOTAL DATA FETCH TIME
--------------------------------------------------------------------------------------------
61GB 16GB 61GB 338GB 400GB Sat Nov 09 11:58 pm 2024
5GB 17GB 66GB 333GB 400GB Mon Nov 11 07:49 am 2024
5GB 17GB 71GB 328GB 400GB Mon Nov 11 09:12 pm 2024
7GB 18GB 79GB 320GB 400GB Tue Nov 12 10:41 pm 2024
6GB 18GB 85GB 314GB 400GB Wed Nov 13 08:07 pm 2024
8GB 19GB 93GB 306GB 400GB Thu Nov 14 04:25 pm 2024
14GB 19GB 107GB 292GB 400GB Fri Nov 15 08:17 am 2024
12GB 20GB 120GB 279GB 400GB Sun Nov 17 07:59 am 2024
7GB 22GB 127GB 272GB 400GB Mon Nov 18 07:52 am 2024
5GB 23GB 133GB 266GB 400GB Tue Nov 19 07:37 am 2024
14GB 22GB 147GB 252GB 400GB Tue Nov 19 01:43 pm 2024
The output shows:
- Daily data usage
- Recommended daily budget to stay within monthly limit
- Total data used so far
- Remaining monthly budget
- Total monthly allocation
- Timestamp of when data was fetched
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
americansouth-0.1.1.tar.gz
(8.9 kB
view details)
Built Distribution
File details
Details for the file americansouth-0.1.1.tar.gz
.
File metadata
- Download URL: americansouth-0.1.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f18127b593f69ad8ec33a7276dcaeaa0d04610b79fdf2f662321e102097f0956 |
|
MD5 | 6b8ad05b81408de32448cc20d9ce5860 |
|
BLAKE2b-256 | 3db6a81306d856c0e8b7b207d8a02c1640b73eb2a607c99553c4f10d6c58f6cc |
File details
Details for the file americansouth-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: americansouth-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3540bed9321d2f75f52c593207f5f2bcb373ffe19e7900acff7602a56025f226 |
|
MD5 | b733b7282ec43406e8d02586fb93ae6f |
|
BLAKE2b-256 | e3d5b085bdc24e632aac1cec9f6917a1a0a5473e4f99d15f172ee78ffad65fe3 |