Skip to main content

A database with multiple data sets that support drawing, These data sets are: World population data set, World Carbon dioxide Concentration data set, World Number of Cities data set, China number of population data set, China number of space vehicles data set......

Project description

A database with multiple data sets that support drawing, These data sets are: World population data set, World Carbon dioxide Concentration data set, World Number of Cities data set, China number of population data set, China number of space vehicles data set......

Issues Forks Stars License Commits Release version

简体中文

The README is still being written and the Wdata project is still under development......

You can use the Watch feature to keep an eye on Wdata project development.

Features

This project is a dataset with multiple functions, there are many datasets in it, and it has been uploaded to Pypi.

Download

This project uses Pypi, so it is recommended to use Pypi to download

Code: pip3 install Wdatabase

Use

The package name when we upload is not the same as the package name used in actual use When importing, use the following code

from Wdata import Wdata_class as main

The main class has the following functions:

Functions Introduction Syntax Return Type
Fetch_dict Get data Func() dict
draw Draw Func() None
Save_file Save file Func(filename:str) bool

Import Data

Wdata has a lot of data sets, here we use 200 years of population growth data as an example

The syntax of Wdata_class is as follows: Wdata_class(json_fname: str)

json_fname is the name of the dataset

from Wdata import Wdata_class as main
test = main('Population_growth') # import population growth over 200 years

Get data

We can use the Fetch_dict function to fetch the data

such as these codes

from Wdata import Wdata_class as main
test = main('Population_growth') # import population growth over 200 years
print(test.Fetch_dict())

after running

~/python test.py
{
    '1800': 900000000,
    '1820': 1100000000,
    '1840': 1200000000,
    '1860': 1300000000,
    '1880': 1400000000,
    '1900': 1650000000,
    '1920': 1800000000,
    '1940': 2200000000,
    '1960': 3000000000,
    '1980': 4400000000,
    '2000': 5900000000,
    '2022': 7400000000
    }

Drawing

Drawing functions use the draw() function as the following code

from Wdata import Wdata_class as main
test = main('Population_growth') # import population growth over 200 years
test.draw()

The result is this

Data save

You can use the Save_file() function to save data

The syntax of Save_file is Save_file(filename:str) -> None

Parameter Description: The filename parameter is used to describe the save file

as the following code

from Wdata import Wdata_class as main
test = main('Population_growth') # import population growth over 200 years
test.Save_file('Package_test') # This function will automatically add the .json suffix

What data do we have

Currently we have the following data

name description unit of measure
Population_growth Population Growth 1800-2022 People
Chinese_spacecraft 2017-2020.06 Chinese spacecraft launches Spacecraft
World_spacecraft 2017-2020.06 World Spacecraft Launches Spacecraft

The above data comes from Bing and Baidu. The author cannot guarantee the accuracy of the data and should not be used for professional purposes

Donate

Due to special reasons, the author was unable to register a Paypal account and was forced to use Alipay

For details, please see Donation Instructions

About Pypi

The Wdataorg team has used twine to upload this library to Pypi

Wdataorg Pypi account

Wdatabase Pypi warehouse address

License

This open source project uses Apache License 2.0

In the process of using this open source project, please use it strictly in accordance with the license

The final interpretation right belongs to the development team Wdataorg

Project License Link

Our closed beta

0.0.1b0 version has been released, users can put forward their valuable opinions

How to test?

Please follow the README instructions to download the project and use it, fill in the internal test form

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

Wdatabase-0.0.1b1.tar.gz (17.3 kB view details)

Uploaded Source

Built Distributions

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

Wdatabase-0.0.1b1-py3.10.egg (16.4 kB view details)

Uploaded Egg

Wdatabase-0.0.1b1-py3.9.egg (16.4 kB view details)

Uploaded Egg

Wdatabase-0.0.1b1-py3.8.egg (16.3 kB view details)

Uploaded Egg

File details

Details for the file Wdatabase-0.0.1b1.tar.gz.

File metadata

  • Download URL: Wdatabase-0.0.1b1.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for Wdatabase-0.0.1b1.tar.gz
Algorithm Hash digest
SHA256 22ad2d28c2a61d1dd6615a02b929279574344ff9ba43a6ecbd3884a9d6622100
MD5 b4064eac0f93162cd51f10a3ea6b2633
BLAKE2b-256 4062649ed6bc4da2199894ef2125fc595ca90349071266e28b720e351290dbbb

See more details on using hashes here.

File details

Details for the file Wdatabase-0.0.1b1-py3.10.egg.

File metadata

  • Download URL: Wdatabase-0.0.1b1-py3.10.egg
  • Upload date:
  • Size: 16.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for Wdatabase-0.0.1b1-py3.10.egg
Algorithm Hash digest
SHA256 ee06ed9a63fa5409198b0a1b23bfe42c0516e68a55e585cf5239dfa6a83776b0
MD5 2fddce8108ce60fdc42f1ca679157d7c
BLAKE2b-256 fc7c97fce9655e0e64101c6c1f866594329d07aed8e0ac0c91d946d6fb2aa863

See more details on using hashes here.

File details

Details for the file Wdatabase-0.0.1b1-py3.9.egg.

File metadata

  • Download URL: Wdatabase-0.0.1b1-py3.9.egg
  • Upload date:
  • Size: 16.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for Wdatabase-0.0.1b1-py3.9.egg
Algorithm Hash digest
SHA256 5c8f2a35a185b738bec4dc53916eafd3c2b36dd962ed36c80f7149e4a963eb88
MD5 3fbc3d3c81736cd8bedcd4024e1ebfb9
BLAKE2b-256 38fd18e01e45675098cb293bc629f0b2aa7325718f805e0634ffe07d904b8c8c

See more details on using hashes here.

File details

Details for the file Wdatabase-0.0.1b1-py3.8.egg.

File metadata

  • Download URL: Wdatabase-0.0.1b1-py3.8.egg
  • Upload date:
  • Size: 16.3 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for Wdatabase-0.0.1b1-py3.8.egg
Algorithm Hash digest
SHA256 935ee3f57665c8830a3f75a1eec36342d0fa7b3f598183b5d253312dfd7cd00b
MD5 1b53b74a61bcc3fe4562f8e7e7a7f9a7
BLAKE2b-256 633decad3046e4b3698519a5b246ff9b3c8a064cf6e83b72bbad5db0f8bf9bfc

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