Comments (5)
Hi @ErikBoesen
Yes, we can do so, but will you pass API as a parameter every time?
As currently, while initiating the package, API key is initialized and available to all the methods to call as API. Please let me know your thoughts on this, how we can improve?
from random-word.
I see now from a closer look that you do instantiate the API each time. But my concern is that there's not really any variation in how you do this, so you might as well instantiate it automatically since there's no API key being passed.
Also I as a user would prefer to not have many different names. Right now it uses random-word
, random_word
, and RandomWords
. I would standardize around random_word
and RandomWord
if I were you.
from random-word.
I'll make a PR in a bit.
from random-word.
@ErikBoesen Any update?
from random-word.
Closing this issue, as in new update user will have the option to pass API of their own
from random-word.
Related Issues (20)
- pyyaml dependency being ignored HOT 1
- word_of_the_day returning None HOT 1
- ModuleNotFoundError: No module named 'yaml' HOT 2
- Unable to use the method get_random_word( )
- r.get_random_words() sometimes returns an empty list HOT 4
- get_random_word() & get_random_words() return a NoneType....!! HOT 9
- add yaml to dependancies
- Attribution to Wordnik.com and violation of TOS
- Broken package HOT 1
- Can't get compiled with pyinstaller HOT 2
- Broken package on Replit.com HOT 2
- Circular Import
- Timeout Error
- Function .get_random_word returns None too often (% depends of parameters) HOT 2
- ModuleNotFoundError when installing 1.0.8 with pip HOT 4
- maxLength < 5 fails to generate a word.
- Getting A Lot of Nones' HOT 1
- Simple words
- Speed up get_random_word() HOT 1
- Error using keyword arg. in random_word
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from random-word.