New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

codsworth

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codsworth - pypi Package Compare versions

Comparing version
0.1.6
to
0.1.7
+1
-1
codsworth.egg-info/PKG-INFO
Metadata-Version: 2.4
Name: codsworth
Version: 0.1.6
Version: 0.1.7
Summary: Your personal robotic butler

@@ -5,0 +5,0 @@ Home-page: https://github.com/Bkiser2000/Codsworth

import os
import json
import random
from textblob import TextBlob
import nltk
import numpy as np
from transformers import pipeline
import torch

@@ -256,2 +256,7 @@ import torch.nn as nn

# --- Crypto price query ---
if any(word in user_input for word in crypto_keywords) and ("price" in user_input or "quote" in user_input):
if self.function_mappings and "crypto" in self.function_mappings:
return self.function_mappings["crypto"](user_input=user_input)
# --- Stock/Crypto Predection Blocks

@@ -314,3 +319,2 @@ if any(pred_word in user_input for pred_word in prediction_keywords) and any(word in user_input for word in stock_keywords):

from textblob import TextBlob
def get_news_sentiment(entities=None):

@@ -348,3 +352,2 @@ api_key = "b6b16e439c404ec89c96cdb0c8b667f6"

from transformers import pipeline
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")

@@ -356,4 +359,3 @@ def summarize_news_article(article_text):

def get_crypto(entities=None, user_input=None):
symbol = "bitcoin"
# List of supported coins (CoinGecko IDs)
symbol = None
ticker_map = {

@@ -382,3 +384,3 @@ "btc": "bitcoin",

}
# Try to extract from entities

@@ -388,18 +390,21 @@ if entities:

ent_lower = ent.lower()
if ent_lower in ticker_map:
symbol = ticker_map[ent_lower]
break
if ent_lower in SUPPORTED_COINS:
symbol = ent_lower
break
if ent_lower in ticker_map:
symbol = ticker_map[ent_lower]
break
# Fallback: check user_input for coin names/tickers
if user_input:
if not symbol and user_input:
for word in user_input.lower().split():
if word in ticker_map:
symbol = ticker_map[word]
break
if word in SUPPORTED_COINS:
symbol = word
break
if word in ticker_map:
symbol = ticker_map[word]
break
if not symbol:
symbol = "bitcoin"
if symbol not in SUPPORTED_COINS:

@@ -485,3 +490,6 @@ return f"{symbol} is not supported."

df_all = pd.read_csv("cryptodata.csv")
symbol_df = df_all[df_all['symbol'] == symbol.lower()]
symbol_df = df_all[df_all['symbol'].str.strip().str.lower() == symbol.strip().lower()]
if symbol_df.empty:
return f"No data found for {symbol}. Try again in a few seconds."
symbol_df = symbol_df.drop_duplicates(subset=["ds"])

@@ -488,0 +496,0 @@ model = Prophet(daily_seasonality=True)

Metadata-Version: 2.4
Name: codsworth
Version: 0.1.6
Version: 0.1.7
Summary: Your personal robotic butler

@@ -5,0 +5,0 @@ Home-page: https://github.com/Bkiser2000/Codsworth

[metadata]
name = codsworth
version = 0.1.6
version = 0.1.7
description = Your personal robotic butler

@@ -5,0 +5,0 @@ long_description = file: README.md

Sorry, the diff of this file is too big to display