Skip to main content

https://github.com/imvickykumar999/Vicksbase-Chatting

Project description

New feature Added : Now you can Upload Your Custom package on Python Package Index using Above Project !!!

import crud

obj1 = crud.vicks(‘passwprd’, name = ‘Vicky’) obj1.push(‘kaisa hai tu ?’)

obj2 = crud.vicks(‘password’) obj2.push()

obj2.save() obj2.pull()

# Firebase-CRUD

Home Automation using my firebase package and kivy Android App, finally display output on my website.

## Create new file in cmd

type nul > led.py

## crud.py

from imvickykumar999 import firebase

firebase_obj = firebase.FirebaseApplication(’https://your_project_name.firebaseio.com/’, None)

# update data firebase_obj.put(‘/parant/’,’child’, data)

# fetch data result = firebase_obj.get(‘/parent/child’, None) print (result)

[![image](https://user-images.githubusercontent.com/50515418/116424009-cd519480-a85e-11eb-943f-e566d49bad09.png)](https://github.com/imvickykumar999/Firebase-CRUD/blob/bdeb5b7a0b703b2f86719ee2da0d06505ee00ceb/main.py#L16)

## CMD…

C:UsersVickyDesktopRepositoryfirebaseFirebase-CRUD>python Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 16:30:00) [MSC v.1900 64 bit (AMD64)] on win32 Type “help”, “copyright”, “credits” or “license” for more information. >>> >>> import crud as f

>>> f.push({"Cost": 250, "Name": "LED 1", "Switch": "ON", "Value": 1})
'updated'
>>> f.pull()
('Value fetched = ', {'Cost': 250, 'Name': 'LED 1', 'Switch': 'ON', 'Value': 1})
>>> f.push({"Cost": 250, "Name": "LED 1", "Switch": "ON", "Value": 1}, fan)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'fan' is not defined
>>> f.push({"Cost": 250, "Name": "Fan", "Switch": "ON", "Value": 1}, 'fan')
'updated'
>>> f.pull('fan')
('Value fetched = ', {'Cost': 250, 'Name': 'Fan', 'Switch': 'ON', 'Value': 1})
>>> f.push({"Cost": 250, "Name": "LED", "Switch": "OFF", "Value": 0})
'updated'
>>> f.pull()
('Value fetched = ', {'Cost': 250, 'Name': 'LED', 'Switch': 'OFF', 'Value': 0})
>>> c.insert()
{'name': '-MZPZc4g5Aq_tqp7Z15x'}
>>> c.remove()
(('Value fetched = ', {'fan': {'Name': 'Fan', 'Switch': 'OFF'}}), '...is present')
>>> c.pull()
('Value fetched = ', None)
>>> c.insert()
{'name': '-MZPZoeNKI0vWr2ZhX4Q'}
>>> c.push()
'updated'
>>> c.remove()
(('Value fetched = ', {'fan': {'Name': 'Fan', 'Switch': 'OFF'}}), '...is present')
>>>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imvickykumar999-0.1.1.tar.gz (15.7 kB view details)

Uploaded Source

File details

Details for the file imvickykumar999-0.1.1.tar.gz.

File metadata

  • Download URL: imvickykumar999-0.1.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for imvickykumar999-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1234c8cd1a69c90dbefd593ff62ac604c10ff187d7bf438bdda3a97d4457985b
MD5 42734190e465dfe924c5fae40064d215
BLAKE2b-256 510a0da7b03e09f1de95d0c1db13b5b00e7e5cf6b27f00bad4e7d359e35a3ed0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page