Skip to content

Commit cfda68c

Browse files
committed
First Commit
07-25 Studt and Project completed
1 parent a9c875e commit cfda68c

File tree

4,435 files changed

+817739
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,435 files changed

+817739
-0
lines changed

.vscode/launch.json

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python: Current File (Integrated Terminal)",
9+
"type": "python",
10+
"request": "launch",
11+
"program": "${file}",
12+
"console": "integratedTerminal"
13+
},
14+
{
15+
"name": "Python: Remote Attach",
16+
"type": "python",
17+
"request": "attach",
18+
"port": 5678,
19+
"host": "localhost",
20+
"pathMappings": [
21+
{
22+
"localRoot": "${workspaceFolder}",
23+
"remoteRoot": "."
24+
}
25+
]
26+
},
27+
{
28+
"name": "Python: Module",
29+
"type": "python",
30+
"request": "launch",
31+
"module": "enter-your-module-name-here",
32+
"console": "integratedTerminal"
33+
},
34+
{
35+
"name": "Python: Django",
36+
"type": "python",
37+
"request": "launch",
38+
"program": "${workspaceFolder}/manage.py",
39+
"console": "integratedTerminal",
40+
"args": [
41+
"runserver",
42+
"--noreload",
43+
"--nothreading"
44+
],
45+
"django": true
46+
},
47+
{
48+
"name": "Python: Flask",
49+
"type": "python",
50+
"request": "launch",
51+
"module": "flask",
52+
"env": {
53+
"FLASK_APP": "app.py"
54+
},
55+
"args": [
56+
"run",
57+
"--no-debugger",
58+
"--no-reload"
59+
],
60+
"jinja": true
61+
},
62+
{
63+
"name": "Python: Current File (External Terminal)",
64+
"type": "python",
65+
"request": "launch",
66+
"program": "${file}",
67+
"console": "externalTerminal"
68+
}
69+
]
70+
}

.vscode/tasks.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Project Label",
8+
"type": "shell",
9+
"command": "python",
10+
"args": [
11+
"${file}"
12+
],
13+
"presentation": {
14+
"reveal": "always",
15+
"panel": "new"
16+
},
17+
"options": {
18+
"env": {
19+
"PYTHONIOENCODING": "UTF-8"
20+
}
21+
},
22+
"group": {
23+
"kind": "build",
24+
"isDefault": true
25+
}
26+
}
27+
]
28+
}
Binary file not shown.
Binary file not shown.
25.8 KB
Binary file not shown.
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# -*- coding: utf-8 -*-
2+
try:
3+
from ._version import version as __version__
4+
except ImportError:
5+
__version__ = 'unknown'
6+
7+
__all__ = ['easter', 'parser', 'relativedelta', 'rrule', 'tz',
8+
'utils', 'zoneinfo']
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Lib/site-packages/dateutil/_common.py

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
"""
2+
Common code used in multiple modules.
3+
"""
4+
5+
6+
class weekday(object):
7+
__slots__ = ["weekday", "n"]
8+
9+
def __init__(self, weekday, n=None):
10+
self.weekday = weekday
11+
self.n = n
12+
13+
def __call__(self, n):
14+
if n == self.n:
15+
return self
16+
else:
17+
return self.__class__(self.weekday, n)
18+
19+
def __eq__(self, other):
20+
try:
21+
if self.weekday != other.weekday or self.n != other.n:
22+
return False
23+
except AttributeError:
24+
return False
25+
return True
26+
27+
def __hash__(self):
28+
return hash((
29+
self.weekday,
30+
self.n,
31+
))
32+
33+
def __ne__(self, other):
34+
return not (self == other)
35+
36+
def __repr__(self):
37+
s = ("MO", "TU", "WE", "TH", "FR", "SA", "SU")[self.weekday]
38+
if not self.n:
39+
return s
40+
else:
41+
return "%s(%+d)" % (s, self.n)
42+
43+
# vim:ts=4:sw=4:et
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# coding: utf-8
2+
# file generated by setuptools_scm
3+
# don't change, don't track in version control
4+
version = '2.8.0'

Lib/site-packages/dateutil/easter.py

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
This module offers a generic easter computing method for any given year, using
4+
Western, Orthodox or Julian algorithms.
5+
"""
6+
7+
import datetime
8+
9+
__all__ = ["easter", "EASTER_JULIAN", "EASTER_ORTHODOX", "EASTER_WESTERN"]
10+
11+
EASTER_JULIAN = 1
12+
EASTER_ORTHODOX = 2
13+
EASTER_WESTERN = 3
14+
15+
16+
def easter(year, method=EASTER_WESTERN):
17+
"""
18+
This method was ported from the work done by GM Arts,
19+
on top of the algorithm by Claus Tondering, which was
20+
based in part on the algorithm of Ouding (1940), as
21+
quoted in "Explanatory Supplement to the Astronomical
22+
Almanac", P. Kenneth Seidelmann, editor.
23+
24+
This algorithm implements three different easter
25+
calculation methods:
26+
27+
1 - Original calculation in Julian calendar, valid in
28+
dates after 326 AD
29+
2 - Original method, with date converted to Gregorian
30+
calendar, valid in years 1583 to 4099
31+
3 - Revised method, in Gregorian calendar, valid in
32+
years 1583 to 4099 as well
33+
34+
These methods are represented by the constants:
35+
36+
* ``EASTER_JULIAN = 1``
37+
* ``EASTER_ORTHODOX = 2``
38+
* ``EASTER_WESTERN = 3``
39+
40+
The default method is method 3.
41+
42+
More about the algorithm may be found at:
43+
44+
`GM Arts: Easter Algorithms <http://www.gmarts.org/index.php?go=415>`_
45+
46+
and
47+
48+
`The Calendar FAQ: Easter <https://www.tondering.dk/claus/cal/easter.php>`_
49+
50+
"""
51+
52+
if not (1 <= method <= 3):
53+
raise ValueError("invalid method")
54+
55+
# g - Golden year - 1
56+
# c - Century
57+
# h - (23 - Epact) mod 30
58+
# i - Number of days from March 21 to Paschal Full Moon
59+
# j - Weekday for PFM (0=Sunday, etc)
60+
# p - Number of days from March 21 to Sunday on or before PFM
61+
# (-6 to 28 methods 1 & 3, to 56 for method 2)
62+
# e - Extra days to add for method 2 (converting Julian
63+
# date to Gregorian date)
64+
65+
y = year
66+
g = y % 19
67+
e = 0
68+
if method < 3:
69+
# Old method
70+
i = (19*g + 15) % 30
71+
j = (y + y//4 + i) % 7
72+
if method == 2:
73+
# Extra dates to convert Julian to Gregorian date
74+
e = 10
75+
if y > 1600:
76+
e = e + y//100 - 16 - (y//100 - 16)//4
77+
else:
78+
# New method
79+
c = y//100
80+
h = (c - c//4 - (8*c + 13)//25 + 19*g + 15) % 30
81+
i = h - (h//28)*(1 - (h//28)*(29//(h + 1))*((21 - g)//11))
82+
j = (y + y//4 + i + 2 - c + c//4) % 7
83+
84+
# p can be from -6 to 56 corresponding to dates 22 March to 23 May
85+
# (later dates apply to method 2, although 23 May never actually occurs)
86+
p = i - j + e
87+
d = 1 + (p + 27 + (p + 6)//40) % 31
88+
m = 3 + (p + 26)//30
89+
return datetime.date(int(y), int(m), int(d))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# -*- coding: utf-8 -*-
2+
from ._parser import parse, parser, parserinfo
3+
from ._parser import DEFAULTPARSER, DEFAULTTZPARSER
4+
from ._parser import UnknownTimezoneWarning
5+
6+
from ._parser import __doc__
7+
8+
from .isoparser import isoparser, isoparse
9+
10+
__all__ = ['parse', 'parser', 'parserinfo',
11+
'isoparse', 'isoparser',
12+
'UnknownTimezoneWarning']
13+
14+
15+
###
16+
# Deprecate portions of the private interface so that downstream code that
17+
# is improperly relying on it is given *some* notice.
18+
19+
20+
def __deprecated_private_func(f):
21+
from functools import wraps
22+
import warnings
23+
24+
msg = ('{name} is a private function and may break without warning, '
25+
'it will be moved and or renamed in future versions.')
26+
msg = msg.format(name=f.__name__)
27+
28+
@wraps(f)
29+
def deprecated_func(*args, **kwargs):
30+
warnings.warn(msg, DeprecationWarning)
31+
return f(*args, **kwargs)
32+
33+
return deprecated_func
34+
35+
def __deprecate_private_class(c):
36+
import warnings
37+
38+
msg = ('{name} is a private class and may break without warning, '
39+
'it will be moved and or renamed in future versions.')
40+
msg = msg.format(name=c.__name__)
41+
42+
class private_class(c):
43+
__doc__ = c.__doc__
44+
45+
def __init__(self, *args, **kwargs):
46+
warnings.warn(msg, DeprecationWarning)
47+
super(private_class, self).__init__(*args, **kwargs)
48+
49+
private_class.__name__ = c.__name__
50+
51+
return private_class
52+
53+
54+
from ._parser import _timelex, _resultbase
55+
from ._parser import _tzparser, _parsetz
56+
57+
_timelex = __deprecate_private_class(_timelex)
58+
_tzparser = __deprecate_private_class(_tzparser)
59+
_resultbase = __deprecate_private_class(_resultbase)
60+
_parsetz = __deprecated_private_func(_parsetz)
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)