What is YesterdayPy? - TLDR Version
What is YesterdayPy? - Longer Version
Technical Bits
Installation
pipx install yesterdaypy
pipx inject yesterdaypy boto3==1.35.99
python yesterdaypy/yesterdaypy.py
How to use it?
export LINODE_TOKEN=ABC
export AWS_ACCESS_KEY_ID=ABC
export AWS_SECRET_ACCESS_KEY=ABC
export AWS_ENDPOINT_URL=ABC
yesterdaypy
yesterdaypy --storage /home/user/backup/example/
yesterdaypy --storage s3://bucket-name
Docker
docker run -e LINODE_TOKEN \
--mount type=bind,src=.,dst=/usr/local/yesterdaypy \
leonardobdes/yesterdaypy:latest
Systemd Service
jq
$ jq . 1056933+20250222233724.json
{
"id": 1056933,
"label": "test-fw",
"created": "2024-10-22T22:38:26",
"updated": "2025-02-22T23:37:24",
"status": "enabled",
"rules": {
"inbound": [
{
"action": "ACCEPT",
"addresses": {
"ipv4": [
"1.1.1.1/32"
]
},
"ports": "22",
"protocol": "TCP",
"label": "test-ssh",
"description": null
}
],
"inbound_policy": "DROP",
"outbound": [],
"outbound_policy": "ACCEPT",
"version": 3,
"fingerprint": "cb6bf75b"
},
"tags": [],
"entities": [
{
"id": 72473810,
"type": "linode",
"label": "ubuntu-gb-lon",
"url": "/v4/linode/instances/72473810"
}
]
}
$ jq .rules.inbound 1056933+20250222233724.json
[
{
"action": "ACCEPT",
"addresses": {
"ipv4": [
"1.1.1.1/32"
]
},
"ports": "22",
"protocol": "TCP",
"label": "test-ssh",
"description": null
}
]
jd
$ jd 1056933+20250222233724.json 1056933+20250314231035.json
@ ["entities",0]
[
- {"id":72473810,"label":"ubuntu-gb-lon","type":"linode","url":"/v4/linode/instances/72473810"}
]
@ ["rules","fingerprint"]
- "cb6bf75b"
+ "69cc1741"
@ ["rules","inbound",1]
{"action":"ACCEPT","addresses":{"ipv4":["1.1.1.1/32"]},"description":null,"label":"test-ssh","ports":"22","protocol":"TCP"}
+ {"action":"ACCEPT","addresses":{"ipv4":["0.0.0.0/0"],"ipv6":["::/0"]},"description":null,"label":"icmp","protocol":"ICMP"}
]
@ ["rules","version"]
- 3
+ 4
@ ["updated"]
- "2025-02-22T23:37:24"
+ "2025-03-14T23:10:35"
To do
- Products
Add more products. Also, some objects have other obejcts under it (Linode Configuration Profile).
- Thread
Add threads for large configurations.
- Mac OS
Test on MacOS, it should work.
- Windows
Need some changes to work on Windows.
Other software ideas
- YesterdayPy_Clone
Clone an object with a new label (name).
- YesterdayPy_Restore
Restore the object to the configuration of the JSON file.
How to report bugs?
How to request new functionalities?
Metadata
Release files for yesterdaypy 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yesterdaypy-1.1.5.tar.gz | 9.6 kB | Without provenance | Details for yesterdaypy-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yesterdaypy-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for yesterdaypy-1.1.5-py3-none-any.whl |
Total release size: 17.9 kB
Release files / yesterdaypy-1.1.5.tar.gz
| Download URL | yesterdaypy-1.1.5.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9423b1f4343fb0cecb552f316ea8d48b3dadcc4575c7231a1b4187668a1eaab3
|
|
BLAKE2b-256 checksum How to use checksums |
4265fa7e464af90f40367ce2d49c5e29dde3b2038db00524374be642b4109482
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / yesterdaypy-1.1.5-py3-none-any.whl
| Download URL | yesterdaypy-1.1.5-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6d0a3439992ac7010d7adb00ba4014dda0d8b79cec25f3f0b441e12f79964aa
|
|
BLAKE2b-256 checksum How to use checksums |
d411cdac651457da5bd8179059a50a38cea9a9d3adeedb209662cd36536c62d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for yesterdaypy 1.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.