Skip to main content

A library for sharing data between python scripts

Project description

THIS LIBRARY IS FOR SHARING DATA BETWEEN TWO OR MORE THAN TWO SCRIPTS WITH 'SQL' DATABASE, BUT YOU CAN USE 'pybridge' AS A SIMPLE DATABASE LIBRARY

:::::::::::::::::::::::::::::::::::::::::::::::;

The main class of library is 'bridge' with some methods:

send_to_bridge() => for saving and sharing data with SQL database

receive_from_bridge(self, all=True, find_key=None, on_delete=False) => for getting datas from selected bridge by built object, The type of received keys and values id 'string'

***args: all : RETURNS ALL RECORDS

find_key : YOU CAN FILTER RECORDS BASED ON THEIR KEYS

on_delete : DELETES ALL FOUNDED RECORDS WHEN IT IS 'TRUE'

delete_bridge_data(find_key=None) => delete records from databse with filtering by 'KEYS'

get_bridge_record_count() => RETURNS RECORDS COUNT IN BRIDGE

raw_sql(query: str, entry: tuple = ()) => RUNNING SQL IN BRIDGE

***args:

query: SQL query for command

entry: inputs for query, every item in this tuple must be tuple!

raw_query_select(query: str, entry: tuple = ()) => SELECTING WITH RAW SQL QUERY

***args:

query: SQL query for command

entry: inputs for query, every item in this tuple must be tuple!

This function returns tuple data

send_dict_data(data: dict) => SEND DATA WITH DICTIONARY

add_bridge_listener() => MAKE A LISTENER FOR BRIDGE EVENTS

It waits for events and after each event you have to call it again and because of that you can usually use it in 'while True' Loops

the built object of 'bridge' has new_event and event_list

new_event ==> It shows the last event that happended to bridge and database

event_list ==> list of saved events by listener

:::::::::::::::::::::::::::::::::::::::::::::::;

THIS PACAKGE IS DEVELOPED BY 'MRT' => (MOHAMMAD REZA TAGHDIRI) A PERSIAN PROGRAMER.

I HOPE THAT 'pybridge' MAKE SOME WORKS EASIER FOR YOU....

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

pybridge-mrt-1.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybridge_mrt-1.2.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file pybridge-mrt-1.2.0.tar.gz.

File metadata

  • Download URL: pybridge-mrt-1.2.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for pybridge-mrt-1.2.0.tar.gz
Algorithm Hash digest
SHA256 bcebd60c0ca9d0a3fbcfe3f31d34a1daa21bba3253355913d5eb4b9ef4104abe
MD5 6c358603f0a956e405a33a531c914805
BLAKE2b-256 f32c0c0baf595a58319c886c277b45544b092bbafb99d47ad967ad50c9fc8610

See more details on using hashes here.

File details

Details for the file pybridge_mrt-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: pybridge_mrt-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for pybridge_mrt-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af817620e463f46d714763225ba49e3316c8c7165edd8dc28aa4053a22bf71b5
MD5 e03b451a493792c28ad8a1ed0d80c517
BLAKE2b-256 f5c9ead31c3965b01384cba4c37d91363f3ec9c392459f4f8458f44dd49413aa

See more details on using hashes here.

Supported by

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