This classes make it easy an straighforward to load, process and save from a collection of data files.
Given a file structure that looks like:
raw-data/
├── agenda-cards.json
├── card-backs.json
├── command-cards.json
# Docs: | |
# - https://docs.sentry.io/api/ | |
# - https://github.com/allisson/python-simple-sentry-client | |
# - https://github.com/allisson/python-simple-rest-client | |
# - https://python-simple-rest-client.readthedocs.io/en/latest/ | |
from simple_sentry_client.api import get_api_instance | |
AUTH_TOKEN = '<your auth token here>' # get one from https://sentry.io/settings/account/api/auth-tokens/ whilst logged in | |
ISSUE_ID = <your issue id here> # integer; the URL for the issue in sentry should contain this value |
Updated instructions based on this tutorial
Props to https://github.com/10flow figuring how this works. It needed very little updating
import os | |
import shutil | |
import datetime | |
PATH = '/home/lvisintini/Downloads/flowenergy' | |
def main(): | |
new_names = {} | |
for dirpath, _, filenames in os.walk(PATH): |
import os | |
import shutil | |
import re | |
import datetime | |
from calendar import monthrange | |
from collections import OrderedDict | |
from dateutil.relativedelta import relativedelta | |
PATH = '/home/lvisintini/Downloads/statement' |
Create a sprite of square images (if the icon is not square, save it inside a square anyway) example
Define sass map with the keys specified: