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.3.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.3.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pybridge-mrt-1.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 ccedb2c223975bb222d8aa8aff6b151b4f5e1e87a12c9cb62e5ef8c6d704f40e
MD5 b88baaa7336feed1414bc367ae85666f
BLAKE2b-256 ba86ebfb4fa5ce62af1fc327b199bc28b2d886de6fc394b8fdf8955f577795fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pybridge_mrt-1.3.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80e645033ad5218e92f065c3a7e7f81c96175bc335740d16e524bba586a648d2
MD5 e2f62c7dcccee419ffb15ba7bf111e10
BLAKE2b-256 df62450f5410d8167f0d0a04f1d93a9d92d555074311111a1d3ce2dd19153993

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