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 hello-pysatellite
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file encore_bigdata2-0.1.0.tar.gz.
File metadata
- Download URL: encore_bigdata2-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31957796d65ac29b5639265da45bdc9df9589d0ba04c79d95f339879d1f1f80d
|
|
| MD5 |
d3ee85f23006de45ab5c46d822956824
|
|
| BLAKE2b-256 |
227ba6df256e9d06be654b49744afc3dd9ec24ec5c543b0ac2983acb8c2d86d7
|
File details
Details for the file encore_bigdata2-0.1.0-py3-none-any.whl.
File metadata
- Download URL: encore_bigdata2-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.9.3 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
727ff75fe562b303ab986fd2c82dec7d3cf877d5daa2d424db69e631116f69ec
|
|
| MD5 |
fc1e63787f12be1aa56e8e042652743c
|
|
| BLAKE2b-256 |
d4d83d5f9c2b106a153ac228f49ca4bfe82e6ecfb571fd5162f281764f12e5f1
|