百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
Y

ynab-python

> 编程语言
开源

针对 YNAB 的自动生成的 Python API

100 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

针对 YNAB 的自动生成的 Python API

ynab-python

No gaurentees this works as expected. It's just a place for me to play around to see if I can get something usable with the YNAB API. Other implementations so far don't seem to have optional fields.

Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

bash
pip install git+https://github.com/deanmcgregor/ynab-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/deanmcgregor/ynab-python.git)

Then import the package:

python
import ynab 

Setuptools

Install via Setuptools.

bash
python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

python
import ynab

Getting Started

Please follow the installation procedure and then run the following:

…

Documentation for API Endpoints

All URIs are relative to https://api.youneedabudget.com/v1

Class Method HTTP request Description
AccountsApi get_account_by_id GET /budgets/{budget_id}/accounts/{account_id} Single account
AccountsApi get_accounts GET /budgets/{budget_id}/accounts Account list
BudgetsApi get_budget_by_id GET /budgets/{budget_id} Single budget
BudgetsApi get_budgets GET /budgets List budgets
CategoriesApi get_categories GET /budgets/{budget_id}/categories List categories
CategoriesApi get_category_by_id GET /budgets/{budget_id}/categories/{category_id} Single category
MonthsApi get_budget_month GET /budgets/{budget_id}/months/{month} Single budget month
MonthsApi get_budget_months GET /budgets/{budget_id}/months List budget months
PayeeLocationsApi get_payee_location_by_id GET /budgets/{budget_id}/payee_locations/{payee_location_id} Single payee location
PayeeLocationsApi get_payee_locations GET /budgets/{budget_id}/payee_locations List payee locations
PayeeLocationsApi get_payee_locations_by_payee GET /budgets/{budget_id}/payees/{payee_id}/payee_locations List locations for a payee
PayeesApi get_payee_by_id GET /budgets/{budget_id}/payees/{payee_id} Single payee
PayeesApi get_payees GET /budgets/{budget_id}/payees List payees
ScheduledTransactionsApi get_scheduled_transaction_by_id GET /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id} Single scheduled transaction
ScheduledTransactionsApi get_scheduled_transactions GET /budgets/{budget_id}/scheduled_transactions List scheduled transactions
TransactionsApi bulk_create_transactions POST /budgets/{budget_id}/transactions/bulk Bulk create transactions
TransactionsApi create_transaction POST /budgets/{budget_id}/transactions Create new transaction
TransactionsApi get_transactions GET /budgets/{budget_id}/transactions List transactions
TransactionsApi get_transactions_by_account GET /budgets/{budget_id}/accounts/{account_id}/transactions List account transactions
TransactionsApi get_transactions_by_category GET /budgets/{budget_id}/categories/{category_id}/transactions List category transactions
TransactionsApi get_transactions_by_id GET /budgets/{budget_id}/transactions/{transaction_id} Single transaction
TransactionsApi get_transactions_by_payee GET /budgets/{budget_id}/payees/{payee_id}/transactions List payee transactions
TransactionsApi update_transaction PUT /budgets/{budget_id}/transactions/{transaction_id} Updates an existing transaction
UserApi get_user GET /user User info

Documentation For Models

  • Account
  • AccountResponse
  • AccountWrapper
  • AccountsResponse
  • AccountsWrapper
  • BudgetDetailResponse
  • BudgetDetailWrapper
  • BudgetSummary
  • BudgetSummaryResponse
  • BudgetSummaryWrapper
  • BulkIdWrapper
  • BulkIds
  • BulkResponse
  • BulkTransactions
  • CategoriesResponse
  • Category
  • CategoryGroup
  • CategoryGroupsWrapper
  • CategoryResponse
  • CategoryWrapper
  • CurrencyFormat
  • DateFormat
  • ErrorDetail
  • ErrorResponse
  • HybridTransactionsResponse
  • HybridTransactionsWrapper
  • MonthDetailResponse
  • MonthDetailWrapper
  • MonthSummariesResponse
  • MonthSummariesWrapper
  • MonthSummary
  • Payee
  • PayeeLocation
  • PayeeLocationResponse
  • PayeeLocationWrapper
  • PayeeLocationsResponse
  • PayeeLocationsWrapper
  • PayeeResponse
  • PayeeWrapper
  • PayeesResponse
  • PayeesWrapper
  • SaveTransaction
  • SaveTransactionWrapper
  • ScheduledSubTransaction
  • ScheduledTransactionResponse
  • ScheduledTransactionSummary
  • ScheduledTransactionWrapper
  • ScheduledTransactionsResponse
  • ScheduledTransactionsWrapper
  • SubTransaction
  • TransactionResponse
  • TransactionSummary
  • TransactionWrapper
  • TransactionsResponse
  • TransactionsWrapper
  • User
  • UserResponse
  • UserWrapper
  • BudgetDetail
  • CategoryGroupWithCategories
  • HybridTransaction
  • MonthDetail
  • ScheduledTransactionDetail
  • TransactionDetail

Documentation For Authorization

bearer

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

Issues· 7 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言