From 67e4b6b0305c5125d4a4794fe23e70993d07a6be Mon Sep 17 00:00:00 2001 From: Keith Horwood Date: Tue, 30 Mar 2021 00:31:18 -0700 Subject: [PATCH 1/4] Update license and README --- LICENSE | 2 +- README.md | 23 +++++++++-------------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/LICENSE b/LICENSE index 2c3bd90..2a7e98a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 - 2017 Polybit Inc. +Copyright (c) 2016 - 2021 Polybit Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/README.md b/README.md index 15eadbd..6aa4fa1 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,9 @@ -# StdLib Python Bindings +# Autocode standard library Python bindings -[StdLib Setup](https://github.com/stdlib/lib) | -[Node](https://github.com/stdlib/lib-node) | -**Python** | -[Ruby](https://github.com/stdlib/lib-ruby) | -[Web](https://github.com/stdlib/lib-js) +Basic Python bindings for Autocode standard library service accession. Python 2.x and 3.x supported. -Basic Python bindings for StdLib service accession. Python 2.x and 3.x supported. - -Used to interface with services built using [StdLib](https://stdlib.com) and -the [StdLib Command Line Tools](https://github.com/stdlib/lib). +Used to interface with services built using [Autocode](https://autocode.com) and +the [Autocode CLI](https://github.com/acode/cli). The `lib` package is available on [PyPI: lib](https://pypi.python.org/pypi/lib) and operates as zero-dependency interface to run StdLib functions. This means that @@ -86,9 +80,10 @@ as listed on StdLib). ## Additional Information -To learn more about StdLib, visit [stdlib.com](https://stdlib.com) or read the -[StdLib CLI documentation on GitHub](https://github.com/stdlib/lib). +To learn more about Autocode and the standard library, visit +[autocode.com](https://autocode.com) or read the +[Autocode CLI documentation on GitHub](https://github.com/acode/cli). -You can follow the development team on Twitter, [@StdLibHQ](https://twitter.com/stdlibhq) +You can follow the development team on Twitter, [@AutocodeHQ](https://twitter.com/AutocodeHQ) -StdLib is © 2016 - 2017 Polybit Inc. +Autocode is © 2016 - 2021 Polybit Inc. From 76e0e61ac579e917d3873d974ac39314164ef896 Mon Sep 17 00:00:00 2001 From: Keith Horwood Date: Mon, 13 Dec 2021 18:15:26 -0800 Subject: [PATCH 2/4] Fix hostname to functions.api.stdlib.com --- lib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/__init__.py b/lib/__init__.py index 976607b..4c7c5be 100644 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -2,7 +2,7 @@ class LibGen(): import os - HOST = 'functions.lib.id' + HOST = 'functions.api.stdlib.com' PORT = 443 PATH = '/' From 5f89904e6cea5ddb0c18f2386965120dd8d5af80 Mon Sep 17 00:00:00 2001 From: Keith Horwood Date: Mon, 13 Dec 2021 18:18:42 -0800 Subject: [PATCH 3/4] Update setup.py --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index bc17709..0f6c0cb 100644 --- a/setup.py +++ b/setup.py @@ -2,12 +2,12 @@ setup( name = 'lib', packages = ['lib'], - version = '3.0.0', - description = 'StdLib: Standard Library for Microservices Python Bindings', + version = '4.0.0', + description = 'Autocode standard library Python bindings', author = 'Keith Horwood', author_email = 'keithwhor@gmail.com', - url = 'https://github.com/stdlib/lib-python', - keywords = ['stdlib', 'microservice', 'serverless', 'faas', 'lib'], + url = 'https://github.com/acode/lib-python', + keywords = ['autocode', 'stdlib', 'microservice', 'serverless', 'faas', 'lib'], license='MIT', classifiers = [ 'Programming Language :: Python :: 2', From 7aa1dda1bde81eda969e27e69944b4f21a74c52d Mon Sep 17 00:00:00 2001 From: Keith Horwood Date: Mon, 13 Dec 2021 22:17:24 -0800 Subject: [PATCH 4/4] Update package data --- .gitignore | 2 ++ README.md | 22 ++++++++++++---------- setup.cfg | 2 +- setup.py | 1 + 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 6ace13d..6a6096d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ test.py dist/ __pycache__/ *.pyc +*.egg-info/ +build/ diff --git a/README.md b/README.md index 6aa4fa1..45d93de 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,18 @@ # Autocode standard library Python bindings -Basic Python bindings for Autocode standard library service accession. Python 2.x and 3.x supported. +Basic Python bindings for Autocode standard library service accession. +Python 2.x and 3.x supported. Used to interface with services built using [Autocode](https://autocode.com) and the [Autocode CLI](https://github.com/acode/cli). -The `lib` package is available on [PyPI: lib](https://pypi.python.org/pypi/lib) and -operates as zero-dependency interface to run StdLib functions. This means that -you can utilize any service on StdLib without installing any additional -dependencies, and when you've deployed services to StdLib, you have a pre-built -Python SDK --- for example; +The `lib` package is available on [PyPI: lib](https://pypi.python.org/pypi/lib) +and operates as zero-dependency interface to run StdLib functions. +This means that you can utilize any service on StdLib without installing any +additional dependencies, and when you've deployed services to StdLib, you have +a pre-built Python SDK. For example. -```python +``` from lib import lib try: @@ -20,8 +21,8 @@ except RuntimeError as err: # handle error ``` -To discover StdLib services, visit https://stdlib.com/search. To build a service, -get started with [the StdLib CLI tools](https://github.com/stdlib/lib). +To discover StdLib services, visit https://stdlib.com/search. To build a +service, get started with [the StdLib CLI tools](https://github.com/stdlib/lib). ## Installation @@ -84,6 +85,7 @@ To learn more about Autocode and the standard library, visit [autocode.com](https://autocode.com) or read the [Autocode CLI documentation on GitHub](https://github.com/acode/cli). -You can follow the development team on Twitter, [@AutocodeHQ](https://twitter.com/AutocodeHQ) +You can follow the development team on Twitter, +[@AutocodeHQ](https://twitter.com/AutocodeHQ). Autocode is © 2016 - 2021 Polybit Inc. diff --git a/setup.cfg b/setup.cfg index b88034e..12871ff 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ [metadata] -description-file = README.md +description-file=README.md diff --git a/setup.py b/setup.py index 0f6c0cb..981c6b5 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ from distutils.core import setup + setup( name = 'lib', packages = ['lib'],