fishauth


Namefishauth JSON
Version 0.1.7 PyPI version JSON
download
home_pagehttps://github.com/jrujano/fishauth-library
SummaryLibraries that have models and methods to handle user authentication
upload_time2023-11-09 04:24:05
maintainer
docs_urlNone
authorJohan Rujano
requires_python
licensehttps://www.apache.org/licenses/LICENSE-2.0
keywords tools authentication login auth session
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## FISHAUTH

FISHAUTH is a library that allows you to manage models to create an authentication system

Installation
------------

To install, run `pip install fishauth`


Basic Usage
-----------
Usage of Alembic starts with creation of the Migration Environment. This is a directory of scripts that is specific to a particular application. The migration environment is created just once, and is then maintained along with the application’s source code itself. The environment is created using the init command of Alembic, and is then customizable to suit the specific needs of the application.

The structure of this environment, including some generated migration scripts, looks like:

```bash
yourproject/
alembic/
    env.py
    README
    script.py.mako
    versions/
        3512b954651e_migrations1.py
        2b1ae634e5cd_migrations2.py
        3adcc9a56557_migrationsN.py
```

Now in `env.py` in our alembic folder, we have to make some changes. To detect auto changes by alembic we need to give our model path to `env.py`

```python
# env.py

from fishauth.models.base import Base as BaseFish
target_metadata = [BaseFish.metadata,...,Base.metadata1,Base.metadata1,Base.metadataN ]

```

As shown above, we have to give the model base file to alembic env file. Now we are all set for our first migration.

```bash
alembic revision --autogenerate -m "First commit"
```

Using the above command alembic generate our first migration commit file in versions folder. you can see the version file now in the versions folder.

Once this file generates we are ready for database migration.
```bash
alembic upgrade head
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jrujano/fishauth-library",
    "name": "fishauth",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "tools authentication login auth session",
    "author": "Johan Rujano",
    "author_email": "johanrujano@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6b/12/0128a7faa3b2d295688e48d09f6ca6c98f04173951a276cef7c33e5ed18e/fishauth-0.1.7.tar.gz",
    "platform": null,
    "description": "## FISHAUTH\n\nFISHAUTH is a library that allows you to manage models to create an authentication system\n\nInstallation\n------------\n\nTo install, run `pip install fishauth`\n\n\nBasic Usage\n-----------\nUsage of Alembic starts with creation of the Migration Environment. This is a directory of scripts that is specific to a particular application. The migration environment is created just once, and is then maintained along with the application\u2019s source code itself. The environment is created using the init command of Alembic, and is then customizable to suit the specific needs of the application.\n\nThe structure of this environment, including some generated migration scripts, looks like:\n\n```bash\nyourproject/\nalembic/\n    env.py\n    README\n    script.py.mako\n    versions/\n        3512b954651e_migrations1.py\n        2b1ae634e5cd_migrations2.py\n        3adcc9a56557_migrationsN.py\n```\n\nNow in `env.py` in our alembic folder, we have to make some changes. To detect auto changes by alembic we need to give our model path to `env.py`\n\n```python\n# env.py\n\nfrom fishauth.models.base import Base as BaseFish\ntarget_metadata = [BaseFish.metadata,...,Base.metadata1,Base.metadata1,Base.metadataN ]\n\n```\n\nAs shown above, we have to give the model base file to alembic env file. Now we are all set for our first migration.\n\n```bash\nalembic revision --autogenerate -m \"First commit\"\n```\n\nUsing the above command alembic generate our first migration commit file in versions folder. you can see the version file now in the versions folder.\n\nOnce this file generates we are ready for database migration.\n```bash\nalembic upgrade head\n```\n",
    "bugtrack_url": null,
    "license": "https://www.apache.org/licenses/LICENSE-2.0",
    "summary": "Libraries that have models and methods to handle user authentication",
    "version": "0.1.7",
    "project_urls": {
        "Homepage": "https://github.com/jrujano/fishauth-library"
    },
    "split_keywords": [
        "tools",
        "authentication",
        "login",
        "auth",
        "session"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "185ce1e661715ef6d0f9eb27bc207e94f5030562b93a432754a07f84d8d4bb71",
                "md5": "848ad5dc87831433ef1e6fba7a1884a0",
                "sha256": "9057cab121427f4a482e7756f0e97ffd9f4d8fd611b6ad594e38c3342d975c74"
            },
            "downloads": -1,
            "filename": "fishauth-0.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "848ad5dc87831433ef1e6fba7a1884a0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 12133,
            "upload_time": "2023-11-09T04:24:04",
            "upload_time_iso_8601": "2023-11-09T04:24:04.313101Z",
            "url": "https://files.pythonhosted.org/packages/18/5c/e1e661715ef6d0f9eb27bc207e94f5030562b93a432754a07f84d8d4bb71/fishauth-0.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6b120128a7faa3b2d295688e48d09f6ca6c98f04173951a276cef7c33e5ed18e",
                "md5": "805ea109b297b86e0531321d9cb84a03",
                "sha256": "10dfebee1ba5d85a1dca835d1adc8e1e9b883ff9545026cd8658b3b4fe3d82a8"
            },
            "downloads": -1,
            "filename": "fishauth-0.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "805ea109b297b86e0531321d9cb84a03",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9232,
            "upload_time": "2023-11-09T04:24:05",
            "upload_time_iso_8601": "2023-11-09T04:24:05.739832Z",
            "url": "https://files.pythonhosted.org/packages/6b/12/0128a7faa3b2d295688e48d09f6ca6c98f04173951a276cef7c33e5ed18e/fishauth-0.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-09 04:24:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jrujano",
    "github_project": "fishauth-library",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "fishauth"
}
        
Elapsed time: 0.17025s