# League Shop Base
Reusable Django app
## Quick start
Add "lsb" to your INSTALLED_APPS setting like this::
```
INSTALLED_APPS = [
...
'lsb',
]
```
## To specify top sold skin values parser, add the following settings:
```
LSB_SETTINGS = {
'top_sold_skin_values': {
'func': <dotted_module_string_path>,
'args': <args>,
'kwargs': <kwargs>
}
}
For example:
LSB_SETTINGS = {
'top_sold_skin_values': {
'func': 'lsb.utils.skins.get_top_sold_skin_values',
'args': [0, 150],
'kwargs': {}
}
}
```
## Changelog (1.0.49)
- Renamed is_bare_metal to is_premium in admin
- Make rank field non nullable
- Added valid account and old stock filter. Needs `old_stock_max_date` in LSB_SETTINGS for old stock filter.
```
LSB_SETTINGS = {
...
"old_stock_max_date": "yyyy-mm-dd",
...
}
```
## Changelog (1.0.72)
- Remove the requirement of `old_stock_max_date` in `LSB_SETTINGS`. It's not needed anymore. Replaced by `constants.OLD_STOCK_THRESHOLD` and `constants.OLD_STOCK_THRESHOLD_STR`. These can be used commonly for master-api, smurfskins-api, etc.
Raw data
{
"_id": null,
"home_page": "https://github.com/sandbox-pokhara/league-shop-base.git",
"name": "league-shop-base",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Anchal Gurung",
"author_email": "anchalghale@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/cc/1b/429c1b44316e7e4e97cb414f6a1f6cec29c7bc534aebe41e028fedb21295/league_shop_base-1.0.74.tar.gz",
"platform": null,
"description": "# League Shop Base\n\nReusable Django app\n\n## Quick start\n\nAdd \"lsb\" to your INSTALLED_APPS setting like this::\n\n```\n INSTALLED_APPS = [\n ...\n 'lsb',\n ]\n```\n\n## To specify top sold skin values parser, add the following settings:\n\n```\nLSB_SETTINGS = {\n 'top_sold_skin_values': {\n 'func': <dotted_module_string_path>,\n 'args': <args>,\n 'kwargs': <kwargs>\n }\n}\nFor example:\n\nLSB_SETTINGS = {\n 'top_sold_skin_values': {\n 'func': 'lsb.utils.skins.get_top_sold_skin_values',\n 'args': [0, 150],\n 'kwargs': {}\n }\n}\n\n```\n\n## Changelog (1.0.49)\n\n- Renamed is_bare_metal to is_premium in admin\n- Make rank field non nullable\n- Added valid account and old stock filter. Needs `old_stock_max_date` in LSB_SETTINGS for old stock filter.\n ```\n LSB_SETTINGS = {\n ...\n \"old_stock_max_date\": \"yyyy-mm-dd\",\n ...\n }\n ```\n\n## Changelog (1.0.72)\n\n- Remove the requirement of `old_stock_max_date` in `LSB_SETTINGS`. It's not needed anymore. Replaced by `constants.OLD_STOCK_THRESHOLD` and `constants.OLD_STOCK_THRESHOLD_STR`. These can be used commonly for master-api, smurfskins-api, etc.\n",
"bugtrack_url": null,
"license": null,
"summary": "A reusable Django app for league shop.",
"version": "1.0.74",
"project_urls": {
"Homepage": "https://github.com/sandbox-pokhara/league-shop-base.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9f0e26a1c9f74f4d0d7c4711e5ca21811606b723edc146eda4723bc74cb87600",
"md5": "a6dbe58c874b03d7c7759b684f4903d9",
"sha256": "73a39d704a366a4b778f8fe58d9a4a38ca0ef6549bd785adb02c49023a1d8b5d"
},
"downloads": -1,
"filename": "league_shop_base-1.0.74-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a6dbe58c874b03d7c7759b684f4903d9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 36418,
"upload_time": "2024-07-12T10:43:39",
"upload_time_iso_8601": "2024-07-12T10:43:39.752720Z",
"url": "https://files.pythonhosted.org/packages/9f/0e/26a1c9f74f4d0d7c4711e5ca21811606b723edc146eda4723bc74cb87600/league_shop_base-1.0.74-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cc1b429c1b44316e7e4e97cb414f6a1f6cec29c7bc534aebe41e028fedb21295",
"md5": "6844191f1c037ebd43d7852c8778d8ba",
"sha256": "3329f655d23d249b5d48761350238a5d2d588afef03322b552a39ddf63951cd8"
},
"downloads": -1,
"filename": "league_shop_base-1.0.74.tar.gz",
"has_sig": false,
"md5_digest": "6844191f1c037ebd43d7852c8778d8ba",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 20262,
"upload_time": "2024-07-12T10:43:41",
"upload_time_iso_8601": "2024-07-12T10:43:41.469080Z",
"url": "https://files.pythonhosted.org/packages/cc/1b/429c1b44316e7e4e97cb414f6a1f6cec29c7bc534aebe41e028fedb21295/league_shop_base-1.0.74.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-12 10:43:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sandbox-pokhara",
"github_project": "league-shop-base",
"github_not_found": true,
"lcname": "league-shop-base"
}