Skip to main content

No project description provided

Project description

encore_bigdata2

This package is for the practice of Encore MLOps and Bigdata education course in October 2023. The package consists of six different modules, each of which contains a single function. The following part of this document describes how to install, develope, test, and deploy the package, and instructions to run each functions.

Install

$ pip install encore_bigdata2

Dev.

$ git clone ...
$ cd encore_bigdata2
$ pdm venv create
$ source .venv/bin/activate
(encore_bigdata-3.8) $ pdm install

Test

$ pdm add -dG test pytest pytest-cov
$ pytest
$ pytest -s
$ pytest --cov

Deploy

$ pdm publish

Contributing

Instructions for each module

This section refers to the instructions for each modules and their own functions.
Remember, while the one can use these functions through importing the modules and functions in Python environment, you can also run these functions individually by the specific command which can be found in each section of functions.

app_8trider.py

randomMember()

This function prints the name of randomly selected member of the group. There are six group members in this group.

from encore_bigdata2.app_8trider import randomMember
$ whosbuy

menuRecommend()

This function helps select a menu for lunch time. There are 13 menus in the menu list in the function, which includes "굶기"(it means "starve" in Korean...). May the God protect them...

from encore_bigdata2.app_8trider import menuRecommend
$ menu

app_doxgxxn.py

coin_game(num)

The function for the game at drink party. As the user runs the function, it flips two coins. If the two coins show the tail samely, the user must drink the beverage as a penalty.

Note: This function is not working properly yet, and probably will be fixed in near future.

from encore_bigdata2.app_doxgxxn import coin_game
$ coin_game

app_felicette.py

today_felicette()

This function simply prints what day it is today. The units of the today's date is from year to microsecond.

from encore_bigdata2.app_felicette import today_felicette
$ today_datetime

app_jiug.py

play_card_game()

The card game this function refers to is 'black jack'. If you are not familiar with the rules of black jack, the player who gets the score the nearest to the number 21 wins. If the player's score gets higher than 21, the player immediately lose the game. If the score is exactly 21, the player wins the game immediately. Or else, the players calculate the score based on the number on the cards they hold.

from encore_bigdata2.app_jiug import play_card_game
$ black_jack

app_tjkpolisher.py

samsung_price()

This function prints the stock price of Samsung Electronics(stock code: 005930) in Korean stock market. As the stock market opens at 09:00 KST and closes at 15:30, when the user runs this code at the time when the market is still open, it continuously prints the changing price at the very current timestamp. Otherwise, the function will print the latest close price of the stock.

from encore_bigdata2.app_tjkpolisher import samsung_price
$ samsung_price

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

encore_bigdata2-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

encore_bigdata2-0.1.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file encore_bigdata2-0.1.1.tar.gz.

File metadata

  • Download URL: encore_bigdata2-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.9.3 CPython/3.8.18

File hashes

Hashes for encore_bigdata2-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0444a07a21c4ab1fac06ecd16a9cf7675dcddf7a3d9684cfd47e08a63ed4a85b
MD5 0328bcaa6396e2bc7c37ce3e83c0d339
BLAKE2b-256 9e832c58a733f0400886ef9b6fa3c6c570550083b992730b97d6172716d3cc74

See more details on using hashes here.

File details

Details for the file encore_bigdata2-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for encore_bigdata2-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa34aa6d5948c548072ea4ea3732a28b8df7b83b6f780fc800c0c79ef523340f
MD5 32f3038a4064cb09a1864a061a9b55e1
BLAKE2b-256 f4d8b668515aa660fb78e7bef455888e42b5abf2421a5e21ca9477f58c5fefa6

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