Skip to main content

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 = pack_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


Download files

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

Source Distribution

pack_dataset-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file pack_dataset-1.0.1.tar.gz.

File metadata

  • Download URL: pack_dataset-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 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

Hashes for pack_dataset-1.0.1.tar.gz
Algorithm Hash digest
SHA256 edd0da30fef928f8203630275a1c31dc502d2064e388fc3c23ea95c02c2a2330
MD5 299c3e177473c4658d3f133a8400405b
BLAKE2b-256 e68e2cc96d4417619d9d9d30811727dec4096257360b2bb1a2df4ee5cc23a632

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