I present the code SP_Ace (Stellar Parameters and Chemical abundances Estimator) which derives stellar parameters Teff, log g, and chemical abundances [El/H] for 10 elements from stellar spectra with spectral resolution between R=2,000 and R=20,000. SP_Ace relies on a library of General Curve-Of-Growth (GCOG) of a list of 4500 absorption lines identified in the wavelength ranges 5212-6900A and 8400-8900A (the present wavelength coverage can be extended). All the transition probabilities of these line have been astrophysically calibrated. The present GCOG library has been built on 1D stellar models and under LTE assumption but it can be extended to 3D stellar models and NLTE assumptions. The code works particularly well at low-medium resolution (R<10,000), where the line profile is dominated by the instrumental profile and where the instrumental blending of the lines become severe. SP_Ace does not need user intervention, providing at the output Teff, log g, and chemical abundances [El/H]. I will show some examples of applications to the ELODIE spectra and the LAMOST spectra. The code is public available.