Skip to content

Commit 1db8bcc

Browse files
pcothenetbiglovisa
andauthored
Update Patch URL; lint (#18)
Co-authored-by: Lovisa Svallingson <[email protected]>
1 parent ac4a1de commit 1db8bcc

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

Diff for: CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.5.0] - 2021-03-01
9+
10+
### Changed
11+
12+
- Changed base URL from https://api.usepatch.com to https://api.patch.io
13+
814
## [1.4.0] - 2021-02-15
915

1016
### Added

Diff for: README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
[![PyPI version](https://badge.fury.io/py/patch-api.svg)](https://badge.fury.io/py/patch-api)
55
[![Discord](https://img.shields.io/discord/733029448558837792)](https://discord.gg/AU8543D)
66

7-
The official Python library for the [Patch API](https://www.usepatch.com).
7+
The official Python library for the [Patch API](https://www.patch.io).
88

99
## Documentation
1010

11-
For a complete API reference, check out [Patch's API Reference.](https://docs.usepatch.com/).
11+
For a complete API reference, check out [Patch's API Reference.](https://docs.patch.io/).
1212

1313
## Installation
1414

1515
Add the library to your `requirements.txt` file:
1616

1717
```txt
18-
patch_api >= 1.4.0
18+
patch_api >= 1.5.0
1919
```
2020

2121
Then run:
@@ -153,6 +153,7 @@ patch.estimates.retrieve_estimates(page=page)
153153
Projects are the ways Patch takes CO2 out of the air. They can represent reforestation, enhanced weathering, direct air carbon capture, etc. When you place an order via Patch, it is allocated to a project.
154154

155155
When fetching projects, you can supply filters to the query to narrow your result. Currently supported filters are:
156+
156157
- `country`
157158
- `type`
158159
- `minimum_available_mass`

Diff for: patch_api/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from __future__ import absolute_import
1717

18-
__version__ = "1.4.0"
18+
__version__ = "1.5.0"
1919

2020
# import ApiClient
2121
from patch_api.api_client import ApiClient

Diff for: patch_api/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
self.default_headers[header_name] = header_value
9292
self.cookie = cookie
9393
# Set default User-Agent.
94-
self.user_agent = "OpenAPI-Generator/1.4.0/python"
94+
self.user_agent = "OpenAPI-Generator/1.5.0/python"
9595

9696
def __del__(self):
9797
if self._pool:

Diff for: patch_api/configuration.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Configuration(object):
5858

5959
def __init__(
6060
self,
61-
host="https://api.usepatch.com",
61+
host="https://api.patch.io",
6262
api_key=None,
6363
api_key_prefix=None,
6464
username=None,
@@ -341,7 +341,7 @@ def to_debug_report(self):
341341
"OS: {env}\n"
342342
"Python Version: {pyversion}\n"
343343
"Version of the API: v1\n"
344-
"SDK Package Version: 1.4.0".format(env=sys.platform, pyversion=sys.version)
344+
"SDK Package Version: 1.5.0".format(env=sys.platform, pyversion=sys.version)
345345
)
346346

347347
def get_host_settings(self):
@@ -356,7 +356,7 @@ def get_host_settings(self):
356356
"variables": {
357357
"defaultHost": {
358358
"description": "No description provided",
359-
"default_value": "api.usepatch.com",
359+
"default_value": "api.patch.io",
360360
}
361361
},
362362
}

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from setuptools import setup, find_packages # noqa: H301
1313

1414
NAME = "patch-api"
15-
VERSION = "1.4.0"
15+
VERSION = "1.5.0"
1616
# To install the library, run the following
1717
#
1818
# python setup.py install

0 commit comments

Comments
 (0)