sklip 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
sklip/__init__.py ADDED
@@ -0,0 +1,6 @@
1
+ from .core import s,ClusterKMeans
2
+
3
+ __version__ = "0.1.0"
4
+ __all__ = ['s']
5
+
6
+ s(1)
sklip/core.py ADDED
@@ -0,0 +1,33 @@
1
+ import pyperclip
2
+
3
+ SNIPPETS = {
4
+ 1: "import numpy as np",
5
+ 2: "import pandas as pd",
6
+ 3: "import matplotlib.pyplot as plt",
7
+ 4: "from sklearn.cluster import KMeans",
8
+ 5: "from sklearn.decomposition import PCA",
9
+ 6: "from sklearn.metrics import silhouette_score",
10
+ 7: "from sklearn.cluster import AgglomerativeClustering",
11
+ 8: "from sklearn.cluster import SpectralClustering",
12
+ 9: "from scipy.cluster.hierarchy import dendrogram, linkage",
13
+ 10: "import seaborn as sns",
14
+ 11: "warnings.filterwarnings('ignore')",
15
+ 12: "X = np.random.randn(100, 2)",
16
+ 13: "kmeans = KMeans(n_clusters=3, random_state=42)",
17
+ 14: "labels = kmeans.fit_predict(X)",
18
+ 15: "pca = PCA(n_components=2)",
19
+ 16: "plt.figure(figsize=(10, 7))",
20
+ 17: "df = pd.read_csv('data.csv')",
21
+ 18: "from sklearn.metrics import calinski_harabasz_score",
22
+ 19: "import scipy.cluster.hierarchy as shc",
23
+ 20: "np.random.seed(42)"
24
+ }
25
+
26
+ def s(id: int = 1) -> bool:
27
+
28
+ text = SNIPPETS.get(id, SNIPPETS[1])
29
+ pyperclip.copy(text)
30
+ def ClusterKMeans(id: int = 1) -> bool:
31
+
32
+ text = SNIPPETS.get(id, SNIPPETS[1])
33
+ pyperclip.copy(text)
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: sklip
3
+ Version: 0.1.0
4
+ Author-email: Your Name <your@email.com>
5
+ Project-URL: Homepage, https://github.com/yourusername/skclip
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.8
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: pyperclip>=1.8.2
@@ -0,0 +1,6 @@
1
+ sklip/__init__.py,sha256=PIe8K2gXufvVlA7AeO-K0FwqEkFJVH9D9xDiqZWr9Eg,83
2
+ sklip/core.py,sha256=8Cuk4OMD1rBMld7hAFSJPm4cYUVtQOk1GQ-xCmchW2g,1175
3
+ sklip-0.1.0.dist-info/METADATA,sha256=AL6X95lJjzY1PS-cxprEYnc5zRkKVJN2q_eRRBumcAo,404
4
+ sklip-0.1.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
5
+ sklip-0.1.0.dist-info/top_level.txt,sha256=V2T-257V83osKN3UDVUjuq-qK9nVZLF611GZPke9kiA,6
6
+ sklip-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.10.2)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ sklip