This project contains a loader of a special data set, as a connection to the database using pymssql
Project description
Project discription:
This project contains a loader of a special data set, as well as a connection to the database using pymssql.
Get start:
First you need to import the package:
import pack_dataset
Now create an instance of the connection class, specifying the login and password for connecting to the database:
datasets_loader = puck_dataset.create_connect(username, password)
And the data for connecting to the database is contained in the permanent environment, then they are automatically initialized. Then you just want to get a data set indicating how many rows you need to get (0 if you need to get everything):
dataset = datasets_loader.get_data_weather(row=15)
Manual connection to the database:
If, when creating a class, a message is displayed stating that it was not possible to get connection data to the database, you must specify them manually:
datasets_loader.connect_data['server'] = server:port datasets_loader.connect_data['database'] = database_name datasets_loader.connect_data['schema'] = shema_name datasets_loader.connect_data['table'] = table_name datasets_loader.connect_to_db()
Next, you can get a dataset:
dataset = datasets_loader.get_data_weather(row=15)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pack_dataset-1.0.0.tar.gz
.
File metadata
- Download URL: pack_dataset-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d632d15cfc147c43541ce7c2a6e1ba90d8883859643db1dfaf567001481f4ad |
|
MD5 | b1ac23a71a7ccbdb3ecebd8bbf17cbde |
|
BLAKE2b-256 | 9ee5ce0426deb2113a79a9bb5c6042d05417234450b06b9a05b1643d7c07f25e |