Skip to content

Commit d3e9e30

Browse files
authored
Merge pull request #146 from square/fern-support/legacy-readme
Restore legacy README.md
2 parents ef5c175 + a032a5a commit d3e9e30

File tree

2 files changed

+196
-2
lines changed

2 files changed

+196
-2
lines changed

legacy/README.md

+194
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
![Square logo]
2+
3+
# Square Python SDK
4+
5+
[![Build](https://github.com./square/square-python-sdk/actions/workflows/python-package.yml/badge.svg)](https://github.com./square/square-python-sdk/actions/workflows/python-package.yml)
6+
[![PyPi version](https://badge.fury.io/py/squareup.svg?new)](https://badge.fury.io/py/squareup)
7+
[![Apache-2 license](https://img.shields.io/badge/license-Apache2-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0)
8+
9+
Use this library to integrate Square payments into your app and grow your business with Square APIs including Catalog, Customers, Employees, Inventory, Labor, Locations, and Orders.
10+
11+
* [Requirements](#requirements)
12+
* [Installation](#installation)
13+
* [Quickstart](#quickstart)
14+
* [Usage](#usage)
15+
* [Tests](#tests)
16+
* [SDK Reference](#sdk-reference)
17+
* [Deprecated APIs](#deprecated-apis)
18+
19+
## Requirements
20+
21+
Use of the Python SDK requires:
22+
23+
* Python 3 version 3.7 or higher
24+
25+
## Installation
26+
27+
For more information, see [Set Up Your Square SDK for a Python Project](https://developer.squareup.com/docs/sdks/python/setup-project).
28+
29+
## Quickstart
30+
31+
For more information, see [Square Python SDK Quickstart](https://developer.squareup.com/docs/sdks/python/quick-start).
32+
33+
## Usage
34+
For more information, see [Using the Square Python SDK](https://developer.squareup.com/docs/sdks/python/using-python-sdk).
35+
36+
## Tests
37+
38+
First, clone the repo locally and `cd` into the directory.
39+
40+
```sh
41+
git clone https://github.com./square/square-python-sdk.git
42+
cd square-python-sdk
43+
```
44+
45+
Next, install dependencies.
46+
47+
```sh
48+
python3 -m pip install .
49+
```
50+
51+
Before running the tests, find a sandbox token in your [Developer Dashboard] and set a `SQUARE_SANDBOX_TOKEN` environment variable.
52+
53+
```sh
54+
export SQUARE_SANDBOX_TOKEN="YOUR SANDBOX TOKEN HERE"
55+
```
56+
57+
Ensure you have `pytest` installed:
58+
59+
```
60+
python3 -m pip install pytest
61+
```
62+
63+
And lastly, run the tests.
64+
65+
```sh
66+
pytest
67+
```
68+
69+
## SDK Reference
70+
71+
### Payments
72+
* [Payments]
73+
* [Refunds]
74+
* [Disputes]
75+
* [Checkout]
76+
* [Apple Pay]
77+
* [Cards]
78+
* [Payouts]
79+
80+
### Terminal
81+
* [Terminal]
82+
83+
### Orders
84+
* [Orders]
85+
* [Order Custom Attributes]
86+
87+
### Subscriptions
88+
* [Subscriptions]
89+
90+
### Invoices
91+
* [Invoices]
92+
93+
### Items
94+
* [Catalog]
95+
* [Inventory]
96+
97+
### Customers
98+
* [Customers]
99+
* [Customer Groups]
100+
* [Customer Segments]
101+
102+
### Loyalty
103+
* [Loyalty]
104+
105+
### Gift Cards
106+
* [Gift Cards]
107+
* [Gift Card Activities]
108+
109+
### Bookings
110+
* [Bookings]
111+
* [Booking Custom Attributes]
112+
113+
### Business
114+
* [Merchants]
115+
* [Merchant Custom Attributes]
116+
* [Locations]
117+
* [Location Custom Attributes]
118+
* [Devices]
119+
* [Cash Drawers]
120+
121+
### Team
122+
* [Team]
123+
* [Labor]
124+
125+
### Financials
126+
* [Bank Accounts]
127+
128+
### Online
129+
* [Sites]
130+
* [Snippets]
131+
132+
### Authorization
133+
* [Mobile Authorization]
134+
* [OAuth]
135+
136+
### Webhook Subscriptions
137+
* [Webhook Subscriptions]
138+
## Deprecated APIs
139+
140+
The following Square APIs are [deprecated](https://developer.squareup.com/docs/build-basics/api-lifecycle):
141+
142+
* [Employees] - replaced by the [Team] API. For more information, see [Migrate from the Employees API](https://developer.squareup.com/docs/team/migrate-from-v2-employees).
143+
144+
* [Transactions] - replaced by the [Orders] and [Payments] APIs. For more information, see [Migrate from the Transactions API](https://developer.squareup.com/docs/payments-api/migrate-from-transactions-api).
145+
146+
[//]: # "Link anchor definitions"
147+
[Square Logo]: https://docs.connect.squareup.com/images/github/github-square-logo.svg
148+
[Developer Dashboard]: https://developer.squareup.com/apps
149+
[Square API]: https://squareup.com/developers
150+
[sign up for a developer account]: https://squareup.com/signup?v=developers
151+
[Client]: doc/client.md
152+
[Devices]: doc/api/devices.md
153+
[Disputes]: doc/api/disputes.md
154+
[Terminal]: doc/api/terminal.md
155+
[Cash Drawers]: doc/api/cash-drawers.md
156+
[Vendors]: doc/api/vendors.md
157+
[Customer Groups]: doc/api/customer-groups.md
158+
[Customer Custom Attributes]: doc/api/customer-custom-attributes.md
159+
[Customer Segments]: doc/api/customer-segments.md
160+
[Bank Accounts]: doc/api/bank-accounts.md
161+
[Payments]: doc/api/payments.md
162+
[Checkout]: doc/api/checkout.md
163+
[Catalog]: doc/api/catalog.md
164+
[Customers]: doc/api/customers.md
165+
[Inventory]: doc/api/inventory.md
166+
[Labor]: doc/api/labor.md
167+
[Loyalty]: doc/api/loyalty.md
168+
[Bookings]: doc/api/bookings.md
169+
[Booking Custom Attributes]: doc/api/booking-custom-attributes.md
170+
[Locations]: doc/api/locations.md
171+
[Location Custom Attributes]: doc/api/location-custom-attributes.md
172+
[Merchants]: doc/api/merchants.md
173+
[Merchant Custom Attributes]: doc/api/merchant-custom-attributes.md
174+
[Orders]: doc/api/orders.md
175+
[Order Custom Attributes]: doc/api/order-custom-attributes.md
176+
[Invoices]: doc/api/invoices.md
177+
[Apple Pay]: doc/api/apple-pay.md
178+
[Refunds]: doc/api/refunds.md
179+
[Subscriptions]: doc/api/subscriptions.md
180+
[Mobile Authorization]: doc/api/mobile-authorization.md
181+
[OAuth]: doc/api/o-auth.md
182+
[Team]: doc/api/team.md
183+
[Python SDK]: https://github.com./square/square-python-sdk
184+
[Locations overview]: https://developer.squareup.com/docs/locations-api/what-it-does
185+
[OAuth overview]: https://developer.squareup.com/docs/oauth-api/what-it-does
186+
[Sites]: doc/api/sites.md
187+
[Snippets]: doc/api/snippets.md
188+
[Cards]: doc/api/cards.md
189+
[Payouts]: doc/api/payouts.md
190+
[Gift Cards]: doc/api/gift-cards.md
191+
[Gift Card Activities]: doc/api/gift-card-activities.md
192+
[Employees]: doc/api/employees.md
193+
[Transactions]: doc/api/transactions.md
194+
[Webhook Subscriptions]: doc/api/webhook-subscriptions.md

legacy/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "squareup_legacy"
55
name = "squareup_legacy"
66
version = "41.0.0.20250319"
77
description = "Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management."
8-
readme = "../README.md"
8+
readme = "README.md"
99
authors = []
1010
keywords = []
1111
packages = [
@@ -28,4 +28,4 @@ plugins = ["pydantic.mypy"]
2828

2929
[build-system]
3030
requires = ["poetry-core"]
31-
build-backend = "poetry.core.masonry.api"
31+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)