Sistema de contabilidade pessoal por partidas dobradas usando Beancount + Fava. Gerencia contas de múltiplos membros da família. Python 3.12, gerenciado com Pipenv.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| from datetime import date | |
| from beancount.ingest.importer import ImporterProtocol | |
| from beancount.core import amount, data | |
| from ofxparse import OfxParser | |
| _prefix_account_dct = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv | |
| from datetime import datetime, date, timedelta | |
| from decimal import Decimal | |
| from os import path | |
| from beancount.core import amount, data | |
| from beancount.core.amount import Amount | |
| from beancount.ingest.importer import ImporterProtocol | |
Sistema automatizado para processar arquivos OFX do Nubank enviados via Telegram, categorizando transações e detectando duplicatas.
Basta enviar o arquivo OFX do Nubank pelo Telegram. O sistema irá:
- Detectar automaticamente que é um arquivo OFX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| print('Hello World') | |
| variavel = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def sync_user_on_discourse(subscription: Subscription): | |
| """ | |
| Synchronize user data on forum if API is configured | |
| :param subscription | |
| :return: returns result of hitting Discourse api | |
| """ | |
| can_make_api_call = bool(settings.DISCOURSE_API_KEY and settings.DISCOURSE_API_USER) | |
| can_work_without_sync = not (settings.DISCOURSE_BASE_URL or can_make_api_call) | |
| if can_work_without_sync: | |
| _logger.info('Discourse Integration not available') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from pathlib import Path | |
| def main(): | |
| caminho_do_arquivo = Path(__file__) | |
| caminho_do_arquivo = caminho_do_arquivo / '..' / '..' / 'templates' / 'template.txt' | |
| print(caminho_do_arquivo.resolve()) | |
| print(caminho_do_arquivo) | |
| with open(caminho_do_arquivo.resolve(), 'r', encoding='utf8') as arquivo: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Vue from 'vue' | |
| import Router from 'vue-router' | |
| import Index from '~/pages/index.vue' | |
| import Perfil from '~/pages/perfil.vue' | |
| import User from '~/pages/user/_username/index.vue' | |
| import Todos from '~/pages/todos.vue' | |
| Vue.use(Router) | |
| export const routerOptions = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from time import sleep | |
| from decouple import config | |
| from google.oauth2 import service_account | |
| from google_auth_oauthlib.flow import InstalledAppFlow | |
| from googleapiclient.discovery import build | |
| from googleapiclient.errors import HttpError | |
| API_KEY = config('API_KEY') |
NewerOlder