Flask-ShopifyUtils


NameFlask-ShopifyUtils JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/leocxy/flask-shopify-utils
SummarySome utils for Shopify that could be use in Flask
upload_time2023-07-19 03:15:44
maintainer
docs_urlNone
authorLeo Chen
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Flask-Shopify-Utils

The utils for Flask Application that build for Shopify Custom App 

---

# Installing

```shell
$pip install -U flask-shopify-utils
```

---

## Example / How to ...

Please check the `example` folder for more details.

Remember, this package is using Flask-SQLAlchemy, so you need to initialize the database first.

```python
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_shopify_utils import ShopifyUtil

app = Flask(__name__)
# Init Database
db = SQLAlchemy()
db.init_app(app)

# Initial Shopify Utils
utils = ShopifyUtil()
utils.init_app(app)
```

---

## Donate

Well, I have no idea how this work, just copy it from somewhere.

The Pallets organization develops and supports Flask and the libraries
it uses. In order to grow the community of contributors and users, and
allow the maintainers to devote more time to the projects, [please
donate today](https://palletsprojects.com/donate)

---

## First time setup

- Download the repository to your local machine.
- Create a virtualenv.

```shell
# Linux/macOS
$ python3 -m venv env
$ . env/bin/active

# Window
$ py -3 -m venv env
$ env/Scripts/active
```

- Upgrade `pip` and `setuptools`

```shell
$ python -m pip install --upgrade pip setuptools
```

- Install the development dependencies, then install `Flask-ShopifyUtils` in editable mode.

```sheel
$ pip install -r requirements.txt && pip install -e .
```

- Build the wheel
```shell
>pip install wheel setuptools twine build
# deprecated
>python setup.py bdist_wheel
# new 
>python -m build
# For more reference https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
```

## Generate the requirements.txt

Once you customize the `steup.cfg`, you should update the `requirements.txt`. 

```shell
>pip-compile --output-file=requirements.txt
````

## Running the tests

Make sure you have install the repository locally.

```shell
# install the package
$ pip install -e .
# install the pytest
& pip install pytest
# run all tests
$ pytest
# run tests with output
$ pytest -s
# run specific test
$ pytest -v tests/test_init.py
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/leocxy/flask-shopify-utils",
    "name": "Flask-ShopifyUtils",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Leo Chen",
    "author_email": "leo.cxy88@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/cf/2c/79b1f8da5acc2fdca86d2e327aa956eaa518c9e3203fda34a6a460315faa/Flask-ShopifyUtils-0.0.3.tar.gz",
    "platform": null,
    "description": "# Flask-Shopify-Utils\n\nThe utils for Flask Application that build for Shopify Custom App \n\n---\n\n# Installing\n\n```shell\n$pip install -U flask-shopify-utils\n```\n\n---\n\n## Example / How to ...\n\nPlease check the `example` folder for more details.\n\nRemember, this package is using Flask-SQLAlchemy, so you need to initialize the database first.\n\n```python\nfrom flask import Flask\nfrom flask_sqlalchemy import SQLAlchemy\nfrom flask_shopify_utils import ShopifyUtil\n\napp = Flask(__name__)\n# Init Database\ndb = SQLAlchemy()\ndb.init_app(app)\n\n# Initial Shopify Utils\nutils = ShopifyUtil()\nutils.init_app(app)\n```\n\n---\n\n## Donate\n\nWell, I have no idea how this work, just copy it from somewhere.\n\nThe Pallets organization develops and supports Flask and the libraries\nit uses. In order to grow the community of contributors and users, and\nallow the maintainers to devote more time to the projects, [please\ndonate today](https://palletsprojects.com/donate)\n\n---\n\n## First time setup\n\n- Download the repository to your local machine.\n- Create a virtualenv.\n\n```shell\n# Linux/macOS\n$ python3 -m venv env\n$ . env/bin/active\n\n# Window\n$ py -3 -m venv env\n$ env/Scripts/active\n```\n\n- Upgrade `pip` and `setuptools`\n\n```shell\n$ python -m pip install --upgrade pip setuptools\n```\n\n- Install the development dependencies, then install `Flask-ShopifyUtils` in editable mode.\n\n```sheel\n$ pip install -r requirements.txt && pip install -e .\n```\n\n- Build the wheel\n```shell\n>pip install wheel setuptools twine build\n# deprecated\n>python setup.py bdist_wheel\n# new \n>python -m build\n# For more reference https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html\n```\n\n## Generate the requirements.txt\n\nOnce you customize the `steup.cfg`, you should update the `requirements.txt`. \n\n```shell\n>pip-compile --output-file=requirements.txt\n````\n\n## Running the tests\n\nMake sure you have install the repository locally.\n\n```shell\n# install the package\n$ pip install -e .\n# install the pytest\n& pip install pytest\n# run all tests\n$ pytest\n# run tests with output\n$ pytest -s\n# run specific test\n$ pytest -v tests/test_init.py\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Some utils for Shopify that could be use in Flask",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/leocxy/flask-shopify-utils"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ee5038bd72d51606d8a0787bba729e6dd43d0ad9d89d6ac6fb7e7df08141aca2",
                "md5": "a5109084d121d3d39b15a21eabc681a2",
                "sha256": "c149fa0758d0d98ce1c11626ea3639ef860a078c4d2c33e7e87640e0bc5ef749"
            },
            "downloads": -1,
            "filename": "Flask_ShopifyUtils-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a5109084d121d3d39b15a21eabc681a2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 13753,
            "upload_time": "2023-07-19T03:15:42",
            "upload_time_iso_8601": "2023-07-19T03:15:42.927639Z",
            "url": "https://files.pythonhosted.org/packages/ee/50/38bd72d51606d8a0787bba729e6dd43d0ad9d89d6ac6fb7e7df08141aca2/Flask_ShopifyUtils-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cf2c79b1f8da5acc2fdca86d2e327aa956eaa518c9e3203fda34a6a460315faa",
                "md5": "cb7375a40dfff841f6c08c50981fc925",
                "sha256": "cafbc8030b191a1a04f658a5b8a5ffccf7dc264dcc2ba3a4319b598d37aab67a"
            },
            "downloads": -1,
            "filename": "Flask-ShopifyUtils-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "cb7375a40dfff841f6c08c50981fc925",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 14444,
            "upload_time": "2023-07-19T03:15:44",
            "upload_time_iso_8601": "2023-07-19T03:15:44.727696Z",
            "url": "https://files.pythonhosted.org/packages/cf/2c/79b1f8da5acc2fdca86d2e327aa956eaa518c9e3203fda34a6a460315faa/Flask-ShopifyUtils-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-19 03:15:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "leocxy",
    "github_project": "flask-shopify-utils",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "flask-shopifyutils"
}
        
Elapsed time: 0.20744s