djangocamera


Namedjangocamera JSON
Version 0.0.1 PyPI version JSON
download
home_page
SummaryAccessing camera on Django Webframework
upload_time2023-01-04 13:52:07
maintainer
docs_urlNone
authorNaman Goyal (Naman82)
requires_python
license
keywords django python video stream video stream camera stream django camera django video
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# djangocamera



A library that makes it simple to use one function to integrate a camera with the Django framework on a website.

## Installation



Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.



```bash

pip install djangocamera

```



## Usage



The `views.py` file, in the `app` directory:

```python

from django.shortcuts import render

from djangocamera.streaming import video_feed



# returns 'camera video'

def camera(request):

  return video_feed()



def index(request):

  return render(request,"index.html",{})

```

The `urls.py` file, in the `app` directory:

``` python

from django.urls import path

from . import views



urlpatterns = [

    path("camera/",views.camera,name="camera"),

    path("",views.index,name="index"),

]



```

The `index.html` file, in the templates directory:

```python

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document</title>

</head>

<body>

    <img src="{% url 'camera' %}" alt="#" >

</body>

</html>

```

## Contributing



Pull requests are welcome. For major changes, please open an issue first

to discuss what you would like to change.



Please make sure to update tests as appropriate.



## License



[MIT](https://choosealicense.com/licenses/mit/)






            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "djangocamera",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "django,python,video,stream,video stream,camera stream,django camera,django video",
    "author": "Naman Goyal (Naman82)",
    "author_email": "<namangoyal.developer@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/ab/47/bda3d7f847af0811699fceb6bf21261205796ad3d7ab3e2679b2a6f02e78/djangocamera-0.0.1.tar.gz",
    "platform": null,
    "description": "\n# djangocamera\n\n\n\nA library that makes it simple to use one function to integrate a camera with the Django framework on a website.\n\n## Installation\n\n\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.\n\n\n\n```bash\n\npip install djangocamera\n\n```\n\n\n\n## Usage\n\n\n\nThe `views.py` file, in the `app` directory:\n\n```python\n\nfrom django.shortcuts import render\n\nfrom djangocamera.streaming import video_feed\n\n\n\n# returns 'camera video'\n\ndef camera(request):\n\n  return video_feed()\n\n\n\ndef index(request):\n\n  return render(request,\"index.html\",{})\n\n```\n\nThe `urls.py` file, in the `app` directory:\n\n``` python\n\nfrom django.urls import path\n\nfrom . import views\n\n\n\nurlpatterns = [\n\n    path(\"camera/\",views.camera,name=\"camera\"),\n\n    path(\"\",views.index,name=\"index\"),\n\n]\n\n\n\n```\n\nThe `index.html` file, in the templates directory:\n\n```python\n\n<!DOCTYPE html>\n\n<html lang=\"en\">\n\n<head>\n\n    <meta charset=\"UTF-8\">\n\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n\n    <title>Document</title>\n\n</head>\n\n<body>\n\n    <img src=\"{% url 'camera' %}\" alt=\"#\" >\n\n</body>\n\n</html>\n\n```\n\n## Contributing\n\n\n\nPull requests are welcome. For major changes, please open an issue first\n\nto discuss what you would like to change.\n\n\n\nPlease make sure to update tests as appropriate.\n\n\n\n## License\n\n\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Accessing camera on Django Webframework",
    "version": "0.0.1",
    "split_keywords": [
        "django",
        "python",
        "video",
        "stream",
        "video stream",
        "camera stream",
        "django camera",
        "django video"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ed8b9e814293df42071d898e7f3ae49c92dc5f80583edc245fa77d1b864dedf0",
                "md5": "db515247950f10cd19bd4d314ca66d63",
                "sha256": "3047c3744499b2f85bdebe216682d2a03ebb4dfce38259b7b0f463c120243496"
            },
            "downloads": -1,
            "filename": "djangocamera-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "db515247950f10cd19bd4d314ca66d63",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3817,
            "upload_time": "2023-01-04T13:52:05",
            "upload_time_iso_8601": "2023-01-04T13:52:05.796962Z",
            "url": "https://files.pythonhosted.org/packages/ed/8b/9e814293df42071d898e7f3ae49c92dc5f80583edc245fa77d1b864dedf0/djangocamera-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ab47bda3d7f847af0811699fceb6bf21261205796ad3d7ab3e2679b2a6f02e78",
                "md5": "b1846d839dec4dd4646cb43dd6a6bd7d",
                "sha256": "c1b6be019259cf40a8f67a3271186a4e6c18a371b2c9d2ea1fb5aaf1a957f8d9"
            },
            "downloads": -1,
            "filename": "djangocamera-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b1846d839dec4dd4646cb43dd6a6bd7d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3530,
            "upload_time": "2023-01-04T13:52:07",
            "upload_time_iso_8601": "2023-01-04T13:52:07.492892Z",
            "url": "https://files.pythonhosted.org/packages/ab/47/bda3d7f847af0811699fceb6bf21261205796ad3d7ab3e2679b2a6f02e78/djangocamera-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-04 13:52:07",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "djangocamera"
}
        
Elapsed time: 0.03193s