GithubHelp home page GithubHelp logo

imigueldiaz / cameras_db Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 530 KB

A Python package offering an SQLite3 database with detailed specifications for around 3,500 DSLR and mirrorless cameras. Comes with a Camera class and a CamerasController for effortless search capabilities. Easily extendable through CSV data imports.

License: GNU General Public License v3.0

Python 100.00%
camera-specification data-management dslr-camera mirrorless pip-package python search-api sqlite-database sqlite3

cameras_db's Introduction

cameras-db

About

cameras-db is a Python package that offers a powerful SQLite3 database stocked with technical specifications for roughly 3,500 DSLR and mirrorless cameras. Out of the box, you get a Camera class and a CamerasController for effortless, search-only database interaction. Extend your data collection effortlessly with CSV imports.

Topics

python pip-package sqlite3 dslr mirrorless-cameras camera-specifications search-api csv-import data-management


Table of Contents


Installation

To install cameras-db, run the following command:

pip install cameras-db

Usage

Initializing the CamerasController and searching is straightforward:

from cameras_db.controllers import CamerasController

# Initialize the controller
controller = CamerasController()

# Search by brand and model
camera = controller.get_by_fields_like_and({"brand": "Canon", "model": "EOS 5D"})

The controller search API is a bit rough still, but I plan to improve it to be more human-like.


Extending the Database

Have a CSV file with fresh camera models and specs? Extend the database pasting it at the setup folder and executing from the command line:

python ./setup_db.py

A README.md file is provided within the folder with more precise instructions.


Contributing

All contributions are welcome. To get started, fork this repository and submit your pull request.


License

This project is licensed under the GNU General Public License v3.0. For full license information, please see the LICENSE file.

cameras_db's People

Contributors

imigueldiaz avatar

Watchers

 avatar  avatar

Forkers

zhoukunlin

cameras_db's Issues

please update the database

Thanks for sharing. In addition, please update the database. For example, there is no data for Sony’s alpha7c2.
感谢分享,另外,求更新数据库,比如索尼的alpha7c2的数据没有

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.